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

html {
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #fff;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  flex: 1 1 0;
  min-width: 0;
}

.logo-icon {
  margin-right: 10px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-item {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.08);
  filter: brightness(1.25);
}

.nav-item.active {
  background: rgba(255, 183, 77, 0.18);
  color: #ffb74d;
  box-shadow: 0 0 12px rgba(255, 183, 77, 0.35);
  font-weight: bold;
}

.admin-btn {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.admin-btn:hover {
  background: #c0392b;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.mobile-nav-item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
  text-align: left;
  transition: all 0.3s;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-content {
  flex: 1;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero-section {
  text-align: center;
  padding: 20px 20px 50px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 200, 80, 0.18) 0%, rgba(255, 150, 50, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-trophy {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 18px rgba(255, 180, 60, 0.55));
  animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-section h1 {
  font-size: 64px;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow:
    0 0 20px rgba(255, 200, 80, 0.55),
    0 0 40px rgba(255, 150, 50, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 22px;
  color: #f0b860;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(240, 184, 96, 0.35);
}

.hero-desc {
  font-size: 15px;
  color: rgba(220, 220, 230, 0.75);
  margin-bottom: 36px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.search-box input::placeholder {
  color: #888;
}

.search-box button {
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 90, 90, 0.4);
}

/* 内联搜索框（栏目页/搜索结果页用） */
.search-box-inline {
  margin: 12px auto 20px;
  max-width: 600px;
}
.search-box-inline input {
  padding: 10px 18px;
  font-size: 14px;
}
.search-box-inline button {
  padding: 10px 22px;
  font-size: 14px;
}

/* 搜索范围条件条 */
.search-scope-bar {
  max-width: 800px;
  margin: 12px auto 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 13px;
  color: #ccc;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.search-scope-bar:empty {
  display: none;
}
.search-scope-bar .scope-label {
  color: #888;
  margin-right: 4px;
}
.search-scope-bar .scope-item {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(52, 152, 219, 0.18);
  border: 1px solid rgba(52, 152, 219, 0.4);
  border-radius: 12px;
  color: #6fc3ff;
  font-size: 12px;
}
.search-scope-bar .scope-sep {
  color: #666;
  margin: 0 2px;
}
.search-scope-bar .scope-clear {
  margin-left: auto;
  color: #e74c3c;
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
}
.search-scope-bar .scope-clear:hover {
  background: rgba(231, 76, 60, 0.25);
}
.search-scope-bar .scope-hint {
  color: #999;
  font-size: 12px;
  margin-left: 8px;
}

/* 搜索结果分区 */
.search-section {
  margin-bottom: 30px;
}
.search-section-title {
  font-size: 16px;
  color: #fff;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.category-icon {
  font-size: 40px;
}

.category-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.category-info p {
  font-size: 14px;
  color: #888;
}

/* ===== 首页分组 L1 栏目（星耀榜/恋爱岛/灵感界） ===== */
.home-l1-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.home-l1-section {
  margin-bottom: 36px;
}

/* 板块标题通用样式 */
.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 0;
  padding-left: 14px;
  border-left: 4px solid #ffb74d;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.section-title .title-icon {
  font-size: 20px;
}

.section-title .title-text {
  letter-spacing: 2px;
}

.section-title .title-en {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  opacity: 0.7;
}

.section-title .title-more {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
  opacity: 0.8;
}

.section-title .title-more:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
}

/* 标题 hover：放大 + 光照效果 */
.section-title {
  transition: transform 0.3s ease, text-shadow 0.3s ease, filter 0.3s ease;
}
.section-title:hover {
  transform: scale(1.04);
  filter: brightness(1.25);
}
.section-shine:hover {
  text-shadow: 0 0 18px rgba(255, 183, 77, 0.7);
}
.section-love:hover {
  text-shadow: 0 0 18px rgba(255, 117, 140, 0.7);
}
.section-inspire:hover {
  text-shadow: 0 0 18px rgba(79, 195, 247, 0.7);
}

/* 星耀榜专属颜色 (金色) */
.section-shine {
  border-color: #ffb74d;
  color: #ffb74d;
}

/* 恋爱岛专属颜色 (粉色) */
.section-love {
  border-color: #ff758c;
  color: #ff758c;
}

/* 灵感界专属颜色 (青蓝色) */
.section-inspire {
  border-color: #4fc3f7;
  color: #4fc3f7;
}

/* 卡片网格布局 */
.grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 单个卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 卡片左侧图标区域 */
.card-icon {
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  flex-shrink: 0;
}

/* 卡片右侧文字区域 */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.card-desc {
  font-size: 13px;
  color: #6c7a9c;
  margin: 0;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 20px;
  }
  .section-title .title-en {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .card {
    padding: 18px;
    gap: 12px;
  }
  .card-icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-desc {
    font-size: 12px;
  }
}

.hot-section {
  margin-top: 40px;
}

.hot-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hot-section-header h2 {
  font-size: 24px;
  color: #ffd700;
  margin: 0;
}

.more-btn {
  background: linear-gradient(90deg, #ff6b6b, #ffa502);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.more-btn:hover { opacity: 0.88; }

.hot-list {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
}

.hot-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-item:hover {
  padding-left: 10px;
}

.hot-rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
}

.hot-rank.top3 {
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
}

.hot-rank:not(.top3) {
  background: rgba(255, 255, 255, 0.1);
}

.hot-title {
  flex: 1;
  font-size: 16px;
}

.hot-stats {
  font-size: 12px;
  color: #888;
}

/* 热点卡片两行两列统计布局 */
.hot-stats-grid {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.hot-stats-col {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}
.hot-stats-col span {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
}
.hot-stats-col .stat-icon {
  width: 26px;
  font-size: 18px;
  text-align: center;
  flex-shrink: 0;
}
.hot-stats-col .stat-like {
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
  font-weight: 600;
}
.hot-stats-col .stat-like:hover { color: #4ecdc4; transform: scale(1.15); }
.hot-stats-col .stat-like.active { color: #4ecdc4; font-weight: bold; }

/* ===== 热点交友榜 —— 视图切换按钮 ===== */
.hot-person-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  overflow: hidden;
}
.hot-person-view-toggle button {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 3px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.hot-person-view-toggle button.active {
  background: #ffd700;
  color: #222;
  font-weight: 600;
}

/* ===== 热点交友榜 —— 卡片式容器 ===== */
.hot-list.person-view-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}

/* ===== 卡片主体 ===== */
.hot-list.person-view-cards .hot-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-bottom: none;
  background: linear-gradient(145deg, rgba(255, 62, 62, 0.12), rgba(255, 62, 62, 0.04));
  border: 1px solid rgba(255, 62, 62, 0.35);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hot-list.person-view-cards .hot-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 8px 24px rgba(255, 62, 62, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .hot-list.person-view-cards .hot-item:hover {
    transform: translateY(-4px);
    border-color: #ff3e3e;
  }
  .hot-list.person-view-cards .hot-item:hover::after {
    opacity: 1;
  }
  .hot-list.person-view-cards .hot-item:hover .person-card-photo img {
    transform: scale(1.06);
  }
}

/* ===== 图片区域 ===== */
.hot-list.person-view-cards .person-card-photo {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: block;
  flex: 0 0 auto;
}
.hot-list.person-view-cards .person-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center top;
  transition: transform 0.4s ease;
  display: block;
  background-color: rgba(0, 0, 0, 0.2);
}
.hot-list.person-view-cards .person-card-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #4a2020, #2a1010);
}

/* ===== 文本内容区 ===== */
.hot-list.person-view-cards .person-card-body {
  padding: 8px 10px 18px;
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hot-list.person-view-cards .person-card-line1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.hot-list.person-view-cards .person-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hot-list.person-view-cards .person-card-stats {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.hot-list.person-view-cards .person-card-stats span {
  white-space: nowrap;
}

.hot-list.person-view-cards .person-card-meta {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 4px;
  text-align: left;
}

.hot-list.person-view-cards .person-card-desc {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  text-align: left;
}

/* ===== 标签系统 (Tag System) ===== */
.hot-list.person-view-cards .person-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
  white-space: nowrap;
}
.hot-list.person-view-cards .pd-gender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.hot-list.person-view-cards .pd-gender-m { background: #3b82f6; color: #fff; }
.hot-list.person-view-cards .pd-gender-f { background: #ec4899; color: #fff; }
.hot-list.person-view-cards .pd-gender-u { background: #6b7280; color: #fff; }

.hot-list.person-view-cards .person-tag-gender-m { background: rgba(59,130,246,.2); color: #93c5fd; }
.hot-list.person-view-cards .person-tag-gender-f { background: rgba(236,72,153,.2); color: #f9a8d4; }
.hot-list.person-view-cards .person-tag-age    { background: rgba(34,197,94,.18); color: #86efac; }
.hot-list.person-view-cards .person-tag-height { background: rgba(249,115,22,.18); color: #fdba74; }
.hot-list.person-view-cards .person-tag-region { background: rgba(139,92,246,.18); color: #c4b5fd; }
.hot-list.person-view-cards .person-tag-job    { background: rgba(14,165,233,.18); color: #7dd3fc; }
.hot-list.person-view-cards .person-tag-edu    { background: rgba(234,179,8,.18); color: #fde68a; }
.hot-list.person-view-cards .person-tag-mar    { background: rgba(244,63,94,.18); color: #fda4af; }
.hot-list.person-view-cards .person-tag-secret { background: rgba(107,114,128,.25); color: #d1d5db; }

/* ===== 💕 恋爱岛筛选面板 ===== */
.love-filter-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 10px 0;
}

/* ===== 💕 恋爱岛 L2 子栏目（小圆角标签） ===== */
.love-l2-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px;
  margin: 0 0 10px 0;
}
.love-l2-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.love-l2-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.love-l2-tag.active {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

/* ===== 恋爱岛 L1 卡片高亮选中状态 ===== */
.card.love-l1-active {
  border-color: rgba(244, 63, 94, 0.5) !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35) !important;
  background: rgba(244, 63, 94, 0.08) !important;
}

.love-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.love-filter-row + .love-filter-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.love-filter-label {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
  min-width: 80px;
}

.love-filter-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.love-filter-select {
  height: 32px;
  padding: 0 28px 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ddd;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
}

.love-filter-select:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.love-filter-select:focus {
  border-color: #4fc3f7;
}

.love-filter-select option {
  background: #fff;
  color: #1a1a2e;
}

.love-filter-age,
.love-filter-range {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 10px;
  font-size: 13px;
}

.love-filter-age input,
.love-filter-range input {
  width: 50px;
  height: 100%;
  background: transparent;
  border: none;
  color: #ddd;
  font-size: 13px;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}

.love-filter-age input::-webkit-outer-spin-button,
.love-filter-age input::-webkit-inner-spin-button,
.love-filter-range input::-webkit-outer-spin-button,
.love-filter-range input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.love-filter-age span,
.love-filter-range span {
  color: #666;
  font-size: 12px;
}

.love-filter-suffix {
  color: #888;
  font-size: 12px;
  margin-left: 2px;
}

.love-filter-area {
  display: flex;
  gap: 4px;
}

.love-filter-area .love-filter-select {
  min-width: 70px;
  padding: 0 24px 0 8px;
}

.love-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.love-filter-submit {
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #ff6b8a, #ff4757);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.love-filter-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.love-filter-submit:active {
  transform: translateY(0);
}

.love-filter-reset {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.love-filter-reset:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ddd;
}

@media (max-width: 768px) {
  .love-filter-row {
    gap: 8px;
  }
  .love-filter-label {
    min-width: auto;
    width: 100%;
    margin-bottom: 4px;
  }
  .love-filter-items {
    width: 100%;
  }
  .love-filter-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== 热点交友榜 —— 列表式（一行一条）===== */
.hot-list.person-view-list {
  display: block;
}
.hot-list.person-view-list .hot-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}
.hot-list.person-view-list .hot-item:hover {
  padding-left: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.hot-list.person-view-list .person-list-rank {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-list.person-view-list .person-list-rank.top3 {
  background: linear-gradient(135deg, #ff3e3e, #ff7043);
  color: #fff;
}
.hot-list.person-view-list .person-list-photo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  cursor: zoom-in;
}
.hot-list.person-view-list .person-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-list.person-view-list .person-list-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.45);
}
.hot-list.person-view-list .person-list-body {
  flex: 1 1 auto;
  min-width: 0;
}
.hot-list.person-view-list .person-list-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.hot-list.person-view-list .person-list-summary {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.hot-list.person-view-list .person-list-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-list.person-view-list .person-list-stats {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ===== 响应式 ===== */
@media (max-width: 560px) {
  .hot-list.person-view-cards { gap: 12px; padding: 12px; }
  .hot-list.person-view-list .person-list-photo { flex-basis: 56px; width: 56px; height: 56px; }
  .hot-list.person-view-list .person-list-rank { flex-basis: 28px; width: 28px; height: 28px; font-size: 12px; }
}

/* 热点列表底部「更多」按钮 */
.hot-list-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.page-header {
  text-align: center;
  padding: 15px 0;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  color: #888;
}

.sub-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.sub-category-tabs button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.sub-category-tabs button.active {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
}

.sub-category-tabs button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== L1/L2 子分类卡片网格（类似首页栏目卡片） ===== */
.sub-category-tabs.sub-category-grid-wrap {
  display: block;
  margin-bottom: 30px;
}

.sub-grid-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: #ffd700;
}

.sub-category-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

/* L1 下的子分类（L2）：一行4个 */
.sub-category-grid.sub-grid-l1 {
  grid-template-columns: repeat(4, 1fr);
}

/* L2 下的子分类（L3）：一行5个，略小 */
.sub-category-grid.sub-grid-l2 {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* "加载更多"按钮行：占满整行，右对齐 */
.load-more-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0;
}

.load-more-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.load-more-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.sub-category-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sub-category-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.sub-category-card-icon {
  font-size: 36px;
  line-height: 1;
}

.sub-category-card-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}

.sub-category-card-info p {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  min-height: 2.8em;
  overflow: hidden;
}

/* L2 下子分类（L3）卡片略小 */
.sub-grid-l2 .sub-category-card {
  padding: 14px;
  gap: 6px;
}

.sub-grid-l2 .sub-category-card-icon {
  font-size: 28px;
}

.sub-grid-l2 .sub-category-card-info h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.sub-grid-l2 .sub-category-card-info p {
  font-size: 11px;
  min-height: 2.4em;
}

/* 移动端响应式：一行2个 */
@media (max-width: 768px) {
  .sub-category-grid.sub-grid-l1,
  .sub-category-grid.sub-grid-l2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-grid-title {
    font-size: 18px;
  }
}

/* ===== L3 榜单装饰性标题栏 ===== */
.sub-category-tabs.l3-banner {
  display: block;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.l3-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(155, 89, 182, 0.1));
  border: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.l3-banner-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #3498db, #9b59b6);
}

.l3-banner-inner::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
  pointer-events: none;
}

.l3-banner-icon {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.l3-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.l3-banner-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.l3-banner-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

.l3-banner-decoration {
  font-size: 28px;
  color: rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
  animation: l3BannerStar 2s ease-in-out infinite;
}

@keyframes l3BannerStar {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* ===== 麦穗装饰 ===== */
.l3-banner-deco {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 80px;
}

.l3-banner-deco .wheat-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0.85;
  animation: wheatSway 3s ease-in-out infinite;
}

.l3-banner-deco-right .wheat-svg {
  transform: scaleX(-1);
  animation-delay: 1.5s;
}

@keyframes wheatSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.l3-banner-deco-right .wheat-svg {
  animation: wheatSwayRight 3s ease-in-out infinite;
}

@keyframes wheatSwayRight {
  0%, 100% { transform: scaleX(-1) rotate(-2deg); }
  50% { transform: scaleX(-1) rotate(2deg); }
}

/* --- Neon 模板麦穗换色 --- */
.template-neon .wheat-svg g {
  fill: #00ffff !important;
  stroke: #008b8b !important;
}
.template-neon .wheat-svg defs linearGradient stop {
  stop-color: #00ffff !important;
}
.template-neon .l3-banner-deco .wheat-svg {
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5));
}

/* --- Elegant 模板麦穗换色 --- */
.template-elegant .wheat-svg g {
  fill: #c9a96e !important;
  stroke: #8b7355 !important;
}
.template-elegant .wheat-svg defs linearGradient stop {
  stop-color: #c9a96e !important;
}

/* --- Sports 模板麦穗换色 --- */
.template-sports .wheat-svg g {
  fill: #2ecc71 !important;
  stroke: #1a8c4a !important;
}
.template-sports .wheat-svg defs linearGradient stop {
  stop-color: #2ecc71 !important;
}

/* --- Gold 模板标题栏 --- */
.template-gold .l3-banner-inner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 140, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.1);
}
.template-gold .l3-banner-inner::before {
  background: linear-gradient(180deg, #ffd700, #ff8c00);
}
.template-gold .l3-banner-title {
  background: linear-gradient(90deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Neon 模板标题栏 --- */
.template-neon .l3-banner-inner {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(255, 0, 255, 0.06));
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}
.template-neon .l3-banner-inner::before {
  background: linear-gradient(180deg, #00ffff, #ff00ff);
}
.template-neon .l3-banner-title {
  color: #00ffff;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.template-neon .l3-banner-decoration {
  color: rgba(255, 0, 255, 0.5);
}

/* --- Elegant 模板标题栏 --- */
.template-elegant .l3-banner-inner {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 0;
  border-top: 1px solid rgba(201, 169, 110, 0.3);
  border-bottom: 2px solid rgba(201, 169, 110, 0.4);
}
.template-elegant .l3-banner-inner::before {
  display: none;
}
.template-elegant .l3-banner-title {
  color: #c9a96e;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: 2px;
}
.template-elegant .l3-banner-decoration {
  color: rgba(201, 169, 110, 0.5);
}

/* --- Sports 模板标题栏 --- */
.template-sports .l3-banner-inner {
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.12), transparent);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-left: 5px solid #2ecc71;
  border-radius: 8px;
}
.template-sports .l3-banner-inner::before {
  display: none;
}
.template-sports .l3-banner-title {
  color: #2ecc71;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.template-sports .l3-banner-decoration {
  color: rgba(46, 204, 113, 0.4);
}

.ranking-list {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
}

.ranking-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s;
}

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.ranking-item img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

.ranking-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin-right: 20px;
}

.ranking-rank.top3 {
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
}

.ranking-rank:not(.top3) {
  background: rgba(255, 255, 255, 0.1);
}

.ranking-info {
  flex: 1;
}

.ranking-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.ranking-info p {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.ranking-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.ranking-meta span {
  color: #888;
}

.ranking-meta span strong {
  color: #fff;
}

.ranking-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.like-btn, .view-btn {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

.like-btn:hover {
  color: #ff6b6b;
}

.view-btn:hover {
  color: #3498db;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button.active {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
}

.pagination button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

.footer {
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.3);
  color: #888;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #ff6b6b;
}

.footer-link-sep {
  color: #555;
  user-select: none;
}

.footer-copyright {
  color: #666;
  font-size: 13px;
  margin: 0;
}

/* ===== 静态页面通用样式 ===== */
.static-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.static-page-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.static-page-body {
  font-size: 15px;
  line-height: 1.9;
  color: #ccc;
}

.static-page-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffd700;
  margin-top: 28px;
  margin-bottom: 12px;
}

.static-page-body p {
  margin-bottom: 12px;
}

.static-page-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.static-page-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.static-page-body a {
  color: #4fc3f7;
  text-decoration: none;
}

.static-page-body a:hover {
  text-decoration: underline;
}

.footer-link-icon {
  font-size: 18px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link-icon img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

/* 发消息模态框层级高于其他模态框（如人员详情），确保显示在上层 */
#messageModal {
  z-index: 2000;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
}

/* 最大化按钮（关闭按钮左侧） */
.maximize-btn {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-right: 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.maximize-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 20px;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
  color: #888;
}

.modal-body textarea {
  resize: vertical;
  min-height: 100px;
}

.login-btn, .save-btn {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover, .save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.wx-auth-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.wx-auth-box img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}
.wx-auth-meta { min-width: 0; flex: 1; }
.wx-auth-code {
  font-size: 28px;
  letter-spacing: 6px;
  font-weight: 700;
  color: #ffb74d;
  line-height: 1.2;
  margin-bottom: 6px;
}
.wx-auth-hint {
  color: #bbb;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.wx-auth-status {
  color: #ffb74d;
  font-size: 13px;
  margin: 0 0 8px;
}
.wx-auth-refresh {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #eee;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.wx-auth-refresh:hover { border-color: #ff6b6b; color: #fff; }
.wx-auth-or {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin: 0 0 14px;
}
@media (max-width: 520px) {
  .wx-auth-box { flex-direction: column; align-items: center; text-align: center; }
}

.error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* ===== 弹窗：overlay 模式（手机端覆盖层） ===== */
.modal.overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* L3 榜单 overlay：保留居中卡片样式 */
.l3-modal.overlay .modal-content {
  width: 95%;
  max-width: 1100px;
  max-height: 92%;
  height: auto;
  border-radius: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 文章 overlay 默认：与父页面内容宽度一致，居中卡片，flex 布局让底部栏始终在底部 */
.article-modal.overlay .modal-content {
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 32px);
  height: auto;
  border-radius: 16px;
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 文章 overlay 最大化：占满浏览器 */
.article-modal.overlay.maximized .modal-content {
  max-width: 100%;
  max-height: 100vh;
  height: 100vh;
  border-radius: 0;
  margin: 0;
}

/* ===== 弹窗：fullscreen 模式（PC新标签页/直链全屏页面） ===== */
.modal.fullscreen {
  background: #0f0f1e;
  backdrop-filter: none;
  justify-content: center;
  align-items: flex-start;
}

.l3-modal.fullscreen .modal-content {
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  border: none;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 16px auto;
}

/* L3 fullscreen 默认：居中卡片，宽度与父页面内容一致，高度自适应 */
.l3-modal.fullscreen .modal-content {
  height: auto;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

/* L3 fullscreen 最大化模式：宽高适应窗口（占满浏览器） */
.l3-modal.fullscreen.maximized .modal-content {
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  margin: 0;
}

/* 文章新标签页：独立阅读页，无最大化/关闭栏，用浏览器窗口滚动 */
.article-modal.fullscreen,
.article-modal.fullscreen.active {
  position: relative;
  display: block;
  inset: auto;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  background: transparent;
  backdrop-filter: none;
  z-index: 1;
  overflow: visible;
  justify-content: unset;
  align-items: unset;
}

.article-modal.fullscreen .modal-content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 0;
  border: none;
  overflow: visible;
  display: block;
  height: auto;
  max-height: none;
  background: #fff;
}

.article-modal.fullscreen .modal-header,
.article-modal.fullscreen .article-bottom-bar,
.article-modal.fullscreen .article-footer-placeholder {
  display: none !important;
}

.article-modal.fullscreen .modal-body,
.article-modal.fullscreen .article-modal-body {
  overflow: visible;
  flex: none;
  min-height: auto;
  padding: 0 20px 80px;
}

/* 文章阅读页：平铺正文 + 评论（不仿顶栏/右侧栏） */
body:has(.article-modal.fullscreen.active):not(.detail-tab-night) {
  background: #f2f3f5;
  color: #252933;
}

.article-modal.fullscreen .article-modal-content {
  max-width: 820px;
  background: #fff;
  box-shadow: none;
}

.article-modal.fullscreen .detail-container {
  background: transparent;
  border-radius: 0;
  padding: 32px 40px 48px;
}

/* 新标签文章：与主页同宽 1200px；标题在卡片上方；标题行右侧固定主题图标 */
.article-modal.fullscreen:not(.site-theme) .modal-content,
.article-modal.fullscreen:not(.site-theme) .article-modal-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
}
.article-modal.fullscreen:not(.site-theme) .article-modal-body {
  padding: 20px 10px 80px;
}
.article-modal.fullscreen:not(.site-theme) .detail-container {
  position: relative;
  border-radius: 12px;
  padding: 24px 36px 40px;
  border: 1.5px solid #c9cdd4;
  background: #fff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.article-modal.fullscreen:not(.site-theme) .detail-container::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: -1.5px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, #22d3ee 28%, #7c3aed 50%, #22d3ee 72%, transparent 100%);
  pointer-events: none;
}
.article-reading-top {
  margin: 0 0 16px;
}
.article-home-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  cursor: pointer;
}
.article-home-logo:hover {
  background: rgba(255, 183, 77, 0.22);
  transform: scale(1.06);
}
.article-reading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.article-modal.overlay .article-reading-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.article-theme-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd56a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-theme-slot {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-theme-btn .icon-sun { display: none; }
.article-theme-btn.is-white .icon-moon { display: none; }
.article-theme-btn.is-white .icon-sun { display: block; }
.article-modal.overlay .article-reading-top h1 {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.article-modal.fullscreen:not(.site-theme) .article-reading-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 18px;
}
.article-modal.fullscreen:not(.site-theme) .article-reading-top h1,
.article-modal.fullscreen:not(.site-theme) #detailTitle {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.article-modal.fullscreen:not(.site-theme) .article-theme-btn {
  display: inline-flex;
}
.article-reading-close {
  display: none;
  font-size: 32px;
  line-height: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  margin-left: 4px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.article-modal.fullscreen:not(.site-theme) .article-reading-close {
  display: flex;
}
.article-reading-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-reading-close {
  background: #fff;
  color: #86909c;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-theme-btn {
  background: #fff;
  color: #e6a817;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-home-logo {
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}
.article-modal.fullscreen:not(.site-theme) .detail-header {
  display: block;
  margin-bottom: 22px;
  padding-bottom: 16px;
  position: relative;
}
.article-modal.fullscreen:not(.site-theme) .detail-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: #22c5c8;
}
.article-modal.fullscreen:not(.site-theme) .article-author-row {
  margin-bottom: 0;
}
.article-header-stats {
  margin-left: auto;
  flex-shrink: 0;
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-header-stats .rank-stat-hot,
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-header-stats .rank-header-views {
  color: #4e5969;
  background: #f2f3f5;
}
.article-modal.fullscreen:not(.site-theme) .article-content h2,
.article-modal.fullscreen:not(.site-theme) .article-content h3 {
  position: relative;
  padding-left: 14px;
}
.article-modal.fullscreen:not(.site-theme) .article-content h2::before,
.article-modal.fullscreen:not(.site-theme) .article-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff2d95, #22d3ee);
}
.article-modal.fullscreen:not(.site-theme) .article-content blockquote {
  position: relative;
  border: none;
  border-radius: 8px;
  padding: 12px 16px 12px 18px;
  background: #f7f8fa;
}
.article-modal.fullscreen:not(.site-theme) .article-content blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff2d95, #22d3ee);
}
.article-modal.fullscreen:not(.site-theme) .article-comments {
  margin-top: 36px;
  padding-top: 28px;
  border-top: none;
  position: relative;
}
.article-modal.fullscreen:not(.site-theme) .article-comments::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: #22c5c8;
}

.article-modal.fullscreen .detail-header {
  margin-bottom: 22px;
}

.article-modal.fullscreen .detail-header h1,
.article-modal.fullscreen #detailTitle {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: #252933;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e80ff 0%, #4e6ef2 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.article-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-author-info {
  flex: 1;
  min-width: 0;
}

.article-author-name {
  font-size: 16px;
  font-weight: 500;
  color: #515767;
  line-height: 1.4;
}

.article-author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
  font-size: 13px;
  color: #8a919f;
}

.article-author-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.article-follow-btn,
.article-like-btn {
  flex-shrink: 0;
}

.article-body-media {
  margin-top: 16px;
}

.article-body-media img,
.article-body-media video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
  cursor: pointer;
}

.article-modal.fullscreen .detail-content {
  margin-bottom: 28px;
}

.article-modal.fullscreen .article-content {
  font-size: 16px;
  line-height: 1.75;
  color: #252933;
}

.article-modal.fullscreen .article-content p,
.article-modal.fullscreen .article-content li {
  color: #252933;
  font-size: 16px;
  line-height: 1.75;
}

.article-modal.fullscreen .article-content h1,
.article-modal.fullscreen .article-content h2,
.article-modal.fullscreen .article-content h3,
.article-modal.fullscreen .article-content h4 {
  color: #252933;
}

.article-modal.fullscreen .detail-actions {
  display: none;
}

.article-author-meta #detailLikes {
  display: none;
}

.article-comments {
  margin-top: 8px;
  padding: 24px 0 0;
}

.article-comments-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #fff;
}

.comment-empty,
.comment-empty.loading {
  color: #888;
  font-size: 14px;
  padding: 16px 0;
}

.comment-form-wrap {
  margin-top: 16px;
}

.comment-form-box {
  position: relative;
}

.comment-input {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}

.comment-input::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

.comment-emoji-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
}

.comment-emoji-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.emoji-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.emoji-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  width: 280px;
  max-height: 160px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.comment-submit-btn {
  padding: 8px 18px;
  background: #1e80ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.comment-login-tip {
  margin-top: 14px;
  color: #aaa;
  font-size: 13px;
}

.comment-login-tip a {
  color: #1e80ff;
}

.article-modal.fullscreen .article-comments {
  background: transparent;
  border-top: 1px solid #e4e6eb;
  padding-top: 28px;
}

.article-modal.fullscreen .article-comments-title {
  color: #252933;
}

.article-modal.fullscreen .comment-empty {
  color: #8a919f;
}

.article-modal.fullscreen .baidu-comment,
.article-modal.fullscreen .baidu-reply {
  border-bottom-color: #e4e6eb;
}

.article-modal.fullscreen .comment-name {
  color: #515767;
}

.article-modal.fullscreen .comment-text {
  color: #252933;
}

.article-modal.fullscreen .comment-info,
.article-modal.fullscreen .comment-reply-link {
  color: #8a919f;
}

.article-modal.fullscreen .comment-reply-link:hover {
  color: #1e80ff;
}

.article-modal.fullscreen .vote-btn {
  border-color: #e4e6eb;
  color: #8a919f;
  background: #fff;
}

.article-modal.fullscreen .vote-btn:hover,
.article-modal.fullscreen .vote-btn.vote-like.active {
  border-color: #1e80ff;
  color: #1e80ff;
  background: #e8f3ff;
}

.article-modal.fullscreen .comment-replies {
  border-left-color: #e4e6eb;
}

.article-modal.fullscreen .comment-input {
  color: #1a1a2e;
  background: #fff;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
  border: 1px solid #e4e6eb;
}

.article-modal.fullscreen .comment-input::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

.article-modal.fullscreen .reply-input {
  color: #1a1a2e;
  background: #fff;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
  border: 1px solid #e4e6eb;
}

.article-modal.fullscreen .reply-input::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

.article-modal.fullscreen .comment-emoji-btn:hover {
  background: #f2f3f5;
}

.article-modal.fullscreen .emoji-panel {
  background: #fff;
  border: 1px solid #e4e6eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-modal.fullscreen .comment-login-tip {
  color: #8a919f;
}

.article-modal.overlay .article-author-name {
  color: #ddd;
}

.article-modal.overlay .article-author-meta {
  color: #888;
}

.article-modal.overlay .article-comments-title {
  color: #fff;
}


.article-modal.overlay .article-content {
  background: #fff;
  padding: 18px 20px;
  border-radius: 8px;
}

.article-modal.overlay.site-theme .article-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* 榜单说明 / 榜单项详情：文章排版 + 站点深色主题 */
.rank-intro-article {
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #eee;
}

.rank-intro-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.3px;
}

.rank-intro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  font-size: 13px;
  color: #8a919f;
  margin-bottom: 20px;
}

.rank-intro-dot {
  margin: 0 6px;
  color: #555;
}

.rank-intro-empty {
  color: #888;
  font-size: 15px;
  margin: 0;
}

.rank-detail-comments {
  padding: 0;
}

#rankDetailModal .article-comments-title,
.pd-page .article-comments-title {
  color: #fff;
}

#rankDetailModal .comment-empty,
.pd-page .comment-empty {
  color: #888;
}

#rankDetailModal .comment-text,
#rankDetailModal .baidu-comment .comment-text {
  color: #eee;
}

#rankDetailModal .reply-input {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

#rankDetailModal .reply-input::placeholder {
  color: #777;
  -webkit-text-fill-color: #777;
}

#rankDetailModal .comment-login-tip a {
  color: #8ec8ff;
}

.pd-page .comment-input:focus {
  border-color: #ffb74d;
}

.pd-page .comment-emoji-btn:hover,
#rankDetailModal .comment-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pd-page .emoji-panel,
#rankDetailModal .emoji-panel {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.pd-page .comment-login-tip a {
  color: #ffb74d;
}

.rank-intro-article .article-content,
.article-modal.site-theme .article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #ddd;
}

.rank-intro-article .article-content p,
.rank-intro-article .article-content li,
.article-modal.site-theme .article-content p,
.article-modal.site-theme .article-content li {
  color: #ddd;
}

.rank-intro-article .article-content h1,
.rank-intro-article .article-content h2,
.rank-intro-article .article-content h3,
.rank-intro-article .article-content h4,
.article-modal.site-theme .article-content h1,
.article-modal.site-theme .article-content h2,
.article-modal.site-theme .article-content h3,
.article-modal.site-theme .article-content h4 {
  color: #fff;
}

.rank-intro-article .article-content a,
.article-modal.site-theme .article-content a {
  color: #8ec8ff;
}

.rank-intro-article .article-content blockquote,
.article-modal.site-theme .article-content blockquote {
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  border-left-color: #ffb74d;
}

.rank-intro-article .article-content pre,
.rank-intro-article .article-content code,
.article-modal.site-theme .article-content pre,
.article-modal.site-theme .article-content code {
  background: rgba(0, 0, 0, 0.35);
  color: #e8e8e8;
}

.rank-intro-article .article-content th,
.rank-intro-article .article-content td,
.article-modal.site-theme .article-content th,
.article-modal.site-theme .article-content td {
  border-color: rgba(255, 255, 255, 0.15);
  color: #ddd;
}

.rank-intro-article .article-content th,
.article-modal.site-theme .article-content th {
  background: rgba(255, 255, 255, 0.08);
}

.rank-intro-article .article-content .download-link,
.article-modal.site-theme .article-content .download-link {
  background: rgba(30, 128, 255, 0.15);
  border-color: #1e80ff;
  color: #8ec8ff;
}

.rank-intro-article .article-content .download-link:hover,
.article-modal.site-theme .article-content .download-link:hover {
  background: #1e80ff;
  color: #fff;
}

body:has(.article-modal.fullscreen.site-theme.active) {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
}

.article-modal.fullscreen.site-theme .modal-content,
.article-modal.fullscreen.site-theme .article-modal-content {
  background: transparent;
  box-shadow: none;
}

.article-modal.fullscreen.site-theme .detail-container {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 32px 40px 48px;
}

.article-modal.fullscreen.site-theme .detail-header h1,
.article-modal.fullscreen.site-theme #detailTitle {
  color: #fff;
}

.article-modal.fullscreen.site-theme .article-author-name {
  color: #ddd;
}

.article-modal.fullscreen.site-theme .article-author-meta {
  color: #8a919f;
}


.article-modal.fullscreen.site-theme .article-content,
.article-modal.fullscreen.site-theme .article-content p,
.article-modal.fullscreen.site-theme .article-content li,
.article-modal.fullscreen.site-theme .article-content h1,
.article-modal.fullscreen.site-theme .article-content h2,
.article-modal.fullscreen.site-theme .article-content h3,
.article-modal.fullscreen.site-theme .article-content h4 {
  color: #ddd;
}

.article-modal.fullscreen.site-theme .article-content h1,
.article-modal.fullscreen.site-theme .article-content h2,
.article-modal.fullscreen.site-theme .article-content h3,
.article-modal.fullscreen.site-theme .article-content h4 {
  color: #fff;
}

.article-modal.fullscreen.site-theme .article-comments {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.article-modal.fullscreen.site-theme .article-comments-title {
  color: #fff;
}

.article-modal.fullscreen.site-theme .comment-empty {
  color: #888;
}

.article-modal.fullscreen.site-theme .baidu-comment,
.article-modal.fullscreen.site-theme .baidu-reply {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.article-modal.fullscreen.site-theme .comment-name {
  color: #4e6ef2;
}

.article-modal.fullscreen.site-theme .comment-text {
  color: #eee;
}

.article-modal.fullscreen.site-theme .comment-info,
.article-modal.fullscreen.site-theme .comment-reply-link {
  color: #888;
}

.article-modal.fullscreen.site-theme .vote-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: #aaa;
  background: rgba(255, 255, 255, 0.06);
}

.article-modal.fullscreen.site-theme .vote-btn:hover,
.article-modal.fullscreen.site-theme .vote-btn.vote-like.active {
  border-color: #1e80ff;
  color: #8ec8ff;
  background: rgba(30, 128, 255, 0.15);
}

.article-modal.fullscreen.site-theme .comment-replies {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.article-modal.fullscreen.site-theme .comment-input,
.article-modal.fullscreen.site-theme .reply-input {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-modal.fullscreen.site-theme .comment-input::placeholder,
.article-modal.fullscreen.site-theme .reply-input::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

.article-modal.fullscreen.site-theme .comment-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.article-modal.fullscreen.site-theme .emoji-panel {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.article-modal.fullscreen.site-theme .comment-login-tip {
  color: #888;
}

@media (max-width: 640px) {
  .article-modal.fullscreen .detail-container {
    padding: 20px 16px 40px;
  }
  .article-modal.fullscreen .detail-header h1,
  .article-modal.fullscreen #detailTitle {
    font-size: 24px;
  }
  .article-modal.fullscreen .detail-content,
  .article-modal.fullscreen .article-content,
  .article-modal.fullscreen .article-content p {
    font-size: 16px;
  }
}

/* L3 fullscreen：隐藏 modal header（标题+关闭按钮），作为独立页面 */
.l3-modal.fullscreen .modal-header {
  display: none;
}

/* L3 独立页面标题栏 */
.l3-standalone-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.l3-standalone-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.l3-standalone-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.l3-standalone-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* L3 独立页面最大化按钮（标题栏右侧） */
.l3-maximize-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.l3-maximize-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* 通用弹窗内部结构 */
.l3-modal .modal-header,
.article-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* 文章弹窗 header 不收缩，固定在顶部 */
.article-modal .modal-header {
  flex-shrink: 0;
}

.l3-modal .modal-body {
  padding: 18px 22px;
}

/* 文章弹窗：左右不留空间；flex:1 填充剩余空间并作为滚动容器 */
.article-modal .modal-body,
.article-modal .article-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 0;
}

/* fullscreen 模式 body 内边距（与 overlay 一致，避免宽屏下内容被挤压） */
.l3-modal.fullscreen .modal-body {
  padding: 20px 22px;
}

.article-modal-header {
  align-items: center;
}

.article-modal-header .breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-modal .detail-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.article-modal .article-comments {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

/* L3 模态框内布局：modal-body 作为唯一滚动容器 */
.l3-modal .l3-page-layout {
  min-height: 100%;
}

/* 模态框内取消内部容器的独立滚动，由 modal-body 统一滚动 */
.l3-modal .l3-scroll-container,
.l3-modal .l3-article-scroll {
  max-height: none !important;
  overflow-y: visible !important;
}

/* ===== rankDetailModal 专属：标题固定 + 内容滚动 + 关闭按钮增大 ===== */
#rankDetailModal.overlay .modal-content,
#rankDetailModal.fullscreen .modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  max-height: 100vh;
  margin: 0 auto;
  border-radius: 16px;
}
#rankDetailModal .modal-header {
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 12px;
}
#rankDetailModal.fullscreen .modal-header {
  display: flex;
  align-items: center;
}
#rankDetailModal .modal-header h2 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  flex: 1 1 140px;
  min-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* overlay 模式：标题栏固定，内容滚动，左右各留 10px */
#rankDetailModal.overlay .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0 12px;
}
#rankDetailModal.overlay .l3-page-layout {
  padding: 0;
  gap: 0;
}
/* fullscreen 模式：modal-body 不滚动，standalone-header 固定，l3-page-layout 独立滚动 */
#rankDetailModal.fullscreen .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
#rankDetailModal.fullscreen .l3-standalone-header {
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 12px 16px;
}
#rankDetailModal.fullscreen .l3-standalone-title {
  flex: 1 1 140px;
  min-width: 120px;
  font-size: 16px;
}
#rankDetailModal.fullscreen .l3-standalone-back {
  padding: 4px 12px;
  font-size: 13px;
}
/* 内容区左右各留 10px，顶部贴近标题栏 */
#rankDetailModal.fullscreen .l3-page-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0 12px;
  gap: 0;
}
#rankDetailModal .close-btn {
  font-size: 32px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
#rankDetailModal .close-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

/* 榜单项 / 简介 / 评论：圆角模块，类似交友卡 .pd-section */
#rankDetailModal .l3-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin: 12px 10px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#rankDetailModal .l3-section-header {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 12px;
  padding-bottom: 10px;
}
/* 榜单项滚动容器去掉左右padding，让ranking-item整体贴section边 */
#rankDetailModal .l3-scroll-container,
#rankDetailModal .l3-article-scroll {
  padding-left: 0;
  padding-right: 0;
}
/* 评论区/说明区等内容容器也去掉左右padding，内部整体贴section边，内部文字自行用padding 0 20px控制 */
#rankDetailModal .rank-detail-section-body {
  padding-left: 0;
  padding-right: 0;
}

.rank-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}
#rankDetailModal .rank-header-actions.pd-stats-inline,
#personDetailModal .rank-header-actions.pd-stats-inline,
#articleModal.site-theme .rank-header-actions.pd-stats-inline {
  margin-left: 16px;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rank-header-views {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
#rankDetailModal .rank-detail-bottom-bar {
  display: flex;
}
#rankDetailModal.fullscreen .rank-detail-bottom-bar .bar-back {
  display: none;
}
#rankDetailModal .rank-detail-bottom-bar .bar-follow.active,
#articleModal .bar-follow.active {
  color: #ffd700;
}
#rankItemHeaderActions[hidden],
#rankItemHeaderTitle[hidden],
#rankItemBackBtn[hidden],
#rankItemMetaFoot[hidden] {
  display: none !important;
}

#articleModal.site-theme .rank-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 140px;
  min-width: 140px;
  margin: 0 16px 0 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
#articleModal.site-theme .rank-header-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#articleModal.site-theme .rank-header-rank-name,
#articleModal.site-theme a.rank-header-rank-name {
  color: #aaa;
  font-weight: 500;
  font-size: 14px;
}
#articleModal.site-theme a.rank-header-rank-name {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
#articleModal.site-theme a.rank-header-rank-name:hover {
  color: #fff;
}
#articleModal.site-theme .rank-header-title .ranking-rank {
  width: 26px;
  height: 26px;
  font-size: 13px;
  margin-right: 0;
  flex-shrink: 0;
}
#articleModal.site-theme .rank-header-title .ranking-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
}
#articleModal.site-theme .rank-header-title .ranking-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
  color: #000;
}
#articleModal.site-theme .rank-header-title .ranking-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}
#articleModal.site-theme .article-modal-header {
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 12px;
}
#articleModal.site-theme.overlay {
  z-index: 1100;
}
#articleModal.site-theme.overlay .modal-content,
#articleModal.site-theme.overlay .article-modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
#articleModal.site-theme .close-btn {
  font-size: 32px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-left: 8px;
  flex-shrink: 0;
  color: #fff;
}
#articleModal.site-theme .close-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}
#articleModal.site-theme .breadcrumb,
#articleModal.site-theme .maximize-btn,
#articleModal.site-theme .detail-header,
#articleModal.site-theme .article-reading-top,
#articleModal.site-theme .detail-actions {
  display: none !important;
}
#articleModal.site-theme .article-bottom-bar,
#articleModal.site-theme.fullscreen .article-bottom-bar {
  display: flex !important;
}
#articleModal.site-theme .bar-follow {
  display: none !important;
}
#articleModal.site-theme .detail-tab-theme-btn {
  display: none;
}
#articleModal.site-theme.fullscreen .detail-tab-theme-btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  border-radius: 8px;
}
#articleModal.site-theme .rank-item-back-btn {
  display: none !important;
}
#articleModal.site-theme.fullscreen .close-btn {
  display: flex;
}
#articleModal.site-theme.overlay .modal-content,
#articleModal.site-theme.fullscreen .modal-content,
#articleModal.site-theme.fullscreen .article-modal-content {
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  max-height: 100vh;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  box-shadow: none;
}
#articleModal.site-theme.fullscreen,
#articleModal.site-theme.fullscreen.active {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: rgba(0, 0, 0, 0.55);
}
#articleModal.site-theme.fullscreen .modal-header {
  display: flex !important;
}
#articleModal.site-theme.overlay .modal-body,
#articleModal.site-theme.fullscreen .modal-body,
#articleModal.site-theme.fullscreen .article-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0 12px;
}
#articleModal.site-theme .detail-container {
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
}
#articleModal.site-theme .detail-content,
#articleModal.site-theme .article-comments {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin: 12px 10px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: none;
}
#articleModal.site-theme .article-comments-title {
  color: #fff;
  margin: 0 0 12px;
}
#articleModal.site-theme .rank-item-meta-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa;
  font-size: 13px;
}
#articleModal.site-theme .rank-item-meta-foot[hidden] {
  display: none;
}
/* ===== rankDetailModal 内所有模板榜单项：左右贴边，名次左4px/详情右4px ===== */
#rankDetailModal .l3-template-container .ranking-item,
#rankDetailModal .template-classic .ranking-item,
#rankDetailModal .template-gold .ranking-item,
#rankDetailModal .template-neon .ranking-item,
#rankDetailModal .template-elegant .ranking-item,
#rankDetailModal .template-sports .ranking-item,
#rankDetailModal .ranking-item {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* 排名名次左侧 4px */
#rankDetailModal .ranking-rank {
  margin-left: 4px;
}
/* 详情按钮右侧 4px */
#rankDetailModal .ranking-detail-btn {
  margin-right: 4px;
}

/* ===== 我要参榜按钮悬停动态效果 ===== */
#joinRankBtn {
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}
#joinRankBtn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 165, 2, 0.5);
}
#joinRankBtn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
#joinRankBtn:hover::after {
  width: 120px;
  height: 120px;
}

/* ===== 榜单项更多按钮（右下角） ===== */
.rank-detail-more-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0;
}
.rank-detail-more-btn {
  background: linear-gradient(90deg, #ff6b6b, #ffa502);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.rank-detail-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 165, 2, 0.4);
}
.rank-detail-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ===== 参榜表单封面图上传预览 ===== */
.join-cover-preview {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 6px;
}

/* ===== 移动端弹窗全屏适配 ===== */
@media (max-width: 768px) {
  .l3-modal.overlay .modal-content,
  .article-modal.overlay .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }

  /* 手机端隐藏最大化按钮（已默认全屏） */
  .maximize-btn {
    display: none !important;
  }

  .l3-modal .modal-body,
  .article-modal .modal-body {
    padding: 12px;
  }

  /* 移动端 L3 改为单栏纵向排列 */
  .l3-modal .l3-page-layout {
    flex-direction: column;
    gap: 12px;
  }

  .article-modal-header .breadcrumb {
    font-size: 12px;
  }

  /* ===== 手机端 rankDetailModal 榜单项：item_value 在详情按钮上方两行小字 ===== */
  #rankDetailModal .ranking-item {
    padding: 8px 0;
    gap: 6px;
  }
  #rankDetailModal .ranking-rank {
    width: 28px;
    height: 28px;
    font-size: 13px;
    flex: 0 0 28px;
    margin-left: 4px;
  }
  #rankDetailModal .ranking-info h3 {
    font-size: 13px;
    line-height: 1.3;
  }
  #rankDetailModal .ranking-info p {
    font-size: 11px;
    line-height: 1.3;
  }
  #rankDetailModal .ranking-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 50px;
  }
  #rankDetailModal .ranking-value,
  #rankDetailModal .ranking-points {
    font-size: 13px;
    padding: 2px 6px;
    margin: 0;
    white-space: nowrap;
    line-height: 1.3;
  }
  #rankDetailModal .ranking-detail-btn {
    font-size: 10px;
    padding: 2px 8px;
    margin-right: 4px;
    white-space: nowrap;
  }
  /* 关闭按钮手机端适配 */
  #rankDetailModal .close-btn,
  #personDetailModal .close-btn {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }

  /* 手机端底部悬浮栏 */
  .article-modal .article-bottom-bar {
    display: flex;
  }
}

/* ===== 文章底部操作栏（flex 项，始终位于弹窗底部） ===== */
.article-bottom-bar {
  display: none;
  position: relative;
  flex-shrink: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #1a1a2e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.article-bottom-bar .bar-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  min-width: 44px;
  position: relative;
  transition: color 0.2s;
}

.article-bottom-bar .bar-btn:hover {
  color: #fff;
}

.article-bottom-bar .bar-btn svg {
  display: block;
}

.article-bottom-bar .bar-count {
  font-size: 10px;
  margin-top: 2px;
  line-height: 1;
}

.article-bottom-bar .bar-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  text-align: center;
}

.article-bottom-bar .bar-comment-input {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 18px;
  padding: 0 16px;
  color: #aaa;
  font-size: 13px;
  display: flex;
  align-items: center;
  cursor: text;
  margin: 0 4px;
  min-width: 0;
}

.article-bottom-bar .bar-comment-input:hover {
  background: rgba(255, 255, 255, 0.15);
}

.article-bottom-bar .bar-comment-placeholder {
  opacity: 0.6;
}

.article-bottom-bar .bar-fav.active {
  color: #ffd700;
}

.article-bottom-bar #barLikeBtn,
.article-bottom-bar #rankBarLikeBtn {
  color: #fff;
}
.article-bottom-bar #barLikeBtn.active,
.article-bottom-bar #rankBarLikeBtn.active,
.article-bottom-bar .bar-like.active {
  color: #ffd700;
}

.article-footer-placeholder {
  height: 0;
}

/* overlay 模式下显示底部栏 */
.article-modal.overlay .article-bottom-bar {
  display: flex;
}

.admin-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  z-index: 999;
  flex-direction: column;
}

.admin-panel.active {
  display: flex;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.admin-sidebar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-content {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

.admin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search input,
.admin-search select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-search button {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background: #3498db;
  color: #fff;
  cursor: pointer;
}

.add-btn {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  background: #27ae60;
  color: #fff;
  cursor: pointer;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.05);
}

.admin-table button {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin-right: 5px;
}

.admin-table .edit-btn {
  background: #3498db;
  color: #fff;
}

.admin-table .delete-btn {
  background: #e74c3c;
  color: #fff;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #888;
}

.category-tree {
  margin-top: 20px;
}

.tree-item {
  margin-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 15px;
  margin-bottom: 10px;
}

.tree-root > .tree-item {
  margin-left: 0;
  border-left: none;
  padding-left: 0;
}

.tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.tree-node:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tree-node-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tree-node-icon {
  font-size: 20px;
}

.tree-node-name {
  font-weight: bold;
}

.tree-node-slug {
  font-size: 12px;
  color: #888;
  margin-left: 5px;
}

.tree-node-actions {
  display: flex;
  gap: 8px;
}

.tree-node-actions button {
  padding: 5px 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

.tree-node-actions .edit-btn {
  background: #3498db;
  color: #fff;
}

.tree-node-actions .delete-btn {
  background: #e74c3c;
  color: #fff;
}

.tree-node-actions .add-child-btn {
  background: #27ae60;
  color: #fff;
}

.tree-children {
  margin-top: 5px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  font-size: 14px;
  color: #888;
}

.breadcrumb span {
  cursor: pointer;
  transition: color 0.3s;
}

.breadcrumb span:hover {
  color: #ff6b6b;
}

.detail-top-bar {
  margin-bottom: 16px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.back-btn:hover {
  background: rgba(52, 152, 219, 0.2);
  border-color: #3498db;
  transform: translateX(-3px);
}

.detail-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
}

.detail-header {
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #888;
}

.detail-content {
  margin-bottom: 30px;
}

.detail-media {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.detail-media video {
  width: 100%;
  max-height: 500px;
}

.detail-description {
  font-size: 16px;
  line-height: 1.8;
  color: #ddd;
}

.detail-actions {
  display: flex;
  gap: 15px;
}

.detail-actions button {
  padding: 12px 25px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.download-btn {
  background: #3498db;
  color: #fff;
}

.download-btn:hover {
  background: #2980b9;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-right {
    display: none !important;
  }

  .site-settings-slot {
    margin-left: auto;
    margin-right: 6px;
  }
  .ss-sub {
    right: auto;
    left: auto;
    top: 100%;
    margin-top: 4px;
  }

  .header {
    padding: 8px 14px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-icon {
    margin-right: 6px;
  }

  .hero-section {
    padding: 20px 16px 30px;
  }

  .hero-trophy {
    font-size: 52px;
  }

  .hero-section h1 {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .hero-section::before {
    width: 380px;
    height: 300px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 10px 0;
  }

  /* ===== 手机端榜单项：左侧名次 + 中间两行 + 右侧两行 ===== */
  .ranking-list {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .ranking-list .ranking-item {
    flex-direction: row;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    min-width: 0;
  }

  .ranking-list .ranking-rank {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 0;
    margin-bottom: 0;
    flex: 0 0 32px;
  }

  .ranking-list .ranking-info {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: left;
    overflow: hidden;
  }

  .ranking-list .ranking-info h3 {
    font-size: 14px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-weight: 600;
  }

  .ranking-list .ranking-info p {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ranking-list .ranking-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 60px;
  }

  .ranking-list .ranking-value,
  .ranking-list .ranking-points {
    font-size: 12px;
    padding: 2px 8px;
    margin: 0;
    white-space: nowrap;
    align-self: flex-end;
  }

  .ranking-list .ranking-detail-btn {
    padding: 3px 10px;
    font-size: 11px;
    margin-left: 0;
    white-space: nowrap;
    align-self: flex-end;
  }

  /* L3 容器手机端适配 */
  .l3-section {
    padding: 0 10px;
    border-radius: 0;
    background: transparent;
    border: none;
  }

  .l3-scroll-container {
    padding-right: 0;
  }

  /* ===== 模板样式手机端覆盖 ===== */
  .ranking-list [class*="template-"] .ranking-item {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .ranking-list [class*="template-"] .ranking-rank {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 0;
  }

  .ranking-list [class*="template-"] .ranking-info h3 {
    font-size: 14px;
  }

  .ranking-list [class*="template-"] .ranking-info p {
    display: block;
    font-size: 11px;
  }

  .ranking-list [class*="template-"] .ranking-value,
  .ranking-list [class*="template-"] .ranking-points {
    font-size: 12px;
    padding: 2px 8px;
  }

  .ranking-list [class*="template-"] .ranking-detail-btn {
    padding: 3px 10px;
    font-size: 11px;
  }

  .ranking-list [class*="template-"] .ranking-right {
    min-width: 60px;
  }

  .admin-table {
    overflow-x: auto;
    display: block;
  }

  .tree-node {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tree-node-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* ===== 手机端文章/详情页：全屏自适应，无左右边框 ===== */
  .detail-container {
    background: transparent;
    border-radius: 0;
    padding: 0 12px;
  }

  .detail-top-bar {
    margin-bottom: 8px;
    padding: 0 12px;
  }

  .detail-header {
    margin-bottom: 16px;
  }

  .detail-header h1 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .detail-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }

  .detail-content {
    margin-bottom: 16px;
  }

  .detail-media {
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .detail-media img,
  .detail-media video {
    max-height: 300px;
  }

  .detail-description,
  .article-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .article-content p {
    margin: 0 0 12px;
  }

  .article-content img {
    border-radius: 4px;
  }

  .detail-actions {
    gap: 10px;
    padding: 0 0 16px;
  }

  .detail-actions button {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* 评论区：全屏无边框 */
  #articleComments {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 16px 12px !important;
    margin-top: 16px !important;
  }

  #articleComments > h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .comment-item {
    padding: 10px 0 !important;
  }

  #commentInput {
    font-size: 14px !important;
    min-height: 60px !important;
  }
}

/* ===== 超小屏幕适配 (≤480px) ===== */
@media (max-width: 480px) {
  .ranking-list .ranking-item {
    padding: 6px 8px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .ranking-list .ranking-rank {
    width: 28px;
    height: 28px;
    font-size: 13px;
    flex: 0 0 28px;
  }

  .ranking-list .ranking-info h3 {
    font-size: 13px;
  }

  .ranking-list .ranking-info p {
    font-size: 10px;
  }

  .ranking-list .ranking-right {
    min-width: 54px;
    gap: 3px;
  }

  .ranking-list .ranking-value,
  .ranking-list .ranking-points {
    font-size: 11px;
    padding: 1px 6px;
  }

  .ranking-list .ranking-detail-btn {
    padding: 2px 7px;
    font-size: 10px;
  }

  .ranking-list [class*="template-"] .ranking-item {
    padding: 6px 8px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .ranking-list [class*="template-"] .ranking-rank {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .ranking-list [class*="template-"] .ranking-info h3 {
    font-size: 13px;
  }

  .ranking-list [class*="template-"] .ranking-info p {
    font-size: 10px;
  }

  .ranking-list [class*="template-"] .ranking-value,
  .ranking-list [class*="template-"] .ranking-points {
    font-size: 11px;
    padding: 1px 6px;
  }

  .ranking-list [class*="template-"] .ranking-detail-btn {
    padding: 2px 7px;
    font-size: 10px;
  }

  .ranking-list [class*="template-"] .ranking-right {
    min-width: 54px;
  }

  /* 首页热点榜 */
  .hot-item {
    padding: 8px 0;
  }

  .hot-rank {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .hot-title {
    font-size: 13px;
  }

  .hot-stats {
    font-size: 11px;
  }

  /* 超小屏文章详情页适配 */
  .detail-container {
    padding: 0 10px;
  }

  .detail-top-bar {
    padding: 0 10px;
  }

  .detail-header h1 {
    font-size: 18px;
  }

  .detail-description,
  .article-content {
    font-size: 14px;
  }

  .detail-media img,
  .detail-media video {
    max-height: 240px;
  }

  #articleComments {
    padding: 12px 10px !important;
  }
}

/* ===== 榜单项文章样式 ===== */
.article-content {
  word-wrap: break-word;
}

/* ===== 评论区 - 百度风格 ===== */
.baidu-comment,
.baidu-reply {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.baidu-reply {
  padding: 10px 0;
}

.comment-main {
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.comment-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-name {
  font-size: 14px;
  font-weight: 500;
  color: #4e6ef2;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 14px;
  color: #eee;
  line-height: 1.5;
  word-break: break-word;
  margin-bottom: 8px;
}

.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.comment-dot {
  color: #555;
}

.comment-reply-link {
  background: none;
  border: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  transition: color 0.2s;
}

.comment-reply-link:hover {
  color: #4e6ef2;
}

.comment-vote {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.vote-btn:hover {
  border-color: #4e6ef2;
  color: #4e6ef2;
}

.vote-btn.vote-like.active {
  background: #4e6ef2;
  border-color: #4e6ef2;
  color: #fff;
}

.vote-btn svg {
  flex-shrink: 0;
}

/* 楼中楼 */
.comment-replies {
  margin-top: 6px;
  margin-left: 46px;
  padding-left: 10px;
  border-left: 2px solid rgba(78, 110, 242, 0.3);
}

/* 回复表单 */
.reply-form-wrap {
  margin: 8px 0 0 46px;
}

.reply-input {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.5;
}

.reply-input::placeholder {
  color: #777;
  -webkit-text-fill-color: #777;
}

.reply-input:focus {
  outline: none;
  border-color: #4e6ef2;
}

.reply-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  position: relative;
}

.reply-cancel-btn {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
}

.reply-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.reply-submit-btn {
  padding: 5px 16px;
  border-radius: 6px;
  border: none;
  background: #4e6ef2;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.reply-submit-btn:hover {
  background: #3a56d4;
}

/* ===== Person 详情页评论区（跟随主页深色） ===== */
.pd-page .baidu-comment, .pd-page .baidu-reply { border-bottom-color: rgba(255, 255, 255, 0.08); }
.pd-page .comment-text { color: #eee; }
.pd-page .comment-info { color: #888; }
.pd-page .comment-dot { color: #555; }
.pd-page .comment-reply-link { color: #aaa; }
.pd-page .comment-reply-link:hover { color: #ffb74d; }
.pd-page .vote-btn { border-color: rgba(255, 255, 255, 0.15); color: #aaa; }
.pd-page .vote-btn:hover { border-color: #ffb74d; color: #ffb74d; }
.pd-page .reply-input { color: #fff !important; background: rgba(255, 255, 255, 0.06) !important; border-color: rgba(255, 255, 255, 0.12) !important; caret-color: #fff; -webkit-text-fill-color: #fff !important; }
.pd-page .reply-input::placeholder { color: #777; -webkit-text-fill-color: #777; }
.pd-page .reply-input:focus { border-color: #ffb74d !important; }
.pd-page .reply-cancel-btn { border-color: rgba(255, 255, 255, 0.2); color: #aaa; }
.pd-page .reply-cancel-btn:hover { background: rgba(255, 255, 255, 0.08); }

.article-content p {
  margin: 0 0 12px;
  line-height: 1.8;
  color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 18px 0 10px;
  color: #222;
  font-weight: 600;
}

.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17px; }

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
  display: block;
}

.article-content video {
  max-width: 100%;
  border-radius: 6px;
  margin: 8px 0;
  display: block;
}

.article-content ul,
.article-content ol {
  padding-left: 28px;
  margin: 0 0 12px;
}

.article-content li {
  margin: 4px 0;
}

.article-content a {
  color: #3498db;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content .download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f4fd;
  border: 1px solid #3498db;
  color: #2980b9;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  margin: 4px 0;
}

.article-content .download-link:hover {
  background: #3498db;
  color: #fff;
  text-decoration: none;
}

.article-content blockquote {
  border-left: 3px solid #3498db;
  padding: 8px 14px;
  margin: 12px 0;
  background: #f8f9fa;
  color: #555;
}

.article-content pre,
.article-content code {
  background: #f4f4f4;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
}

.article-content pre {
  padding: 12px;
  overflow-x: auto;
}

.article-content table {
  border-collapse: collapse;
  margin: 12px 0;
  width: 100%;
}

.article-content th,
.article-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.article-content th {
  background: #f4f4f4;
}

/* ===== Header 右侧用户菜单/登录注册按钮 ===== */
.header-end {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-settings-slot {
  position: relative;
  flex-shrink: 0;
}
.site-settings {
  position: relative;
  z-index: 120;
}
.site-settings-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.site-settings-btn:hover,
.site-settings.is-open .site-settings-btn {
  background: rgba(255, 183, 77, 0.25);
  color: #ffd56a;
}
.site-settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.ss-item {
  position: relative;
}
.ss-parent,
.ss-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  color: #eee;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.ss-parent::after {
  content: '›';
  color: #888;
  font-size: 16px;
  margin-left: 12px;
}
.ss-parent:hover,
.ss-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.ss-sub {
  display: none;
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  min-width: 140px;
  padding: 6px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.ss-item.is-open .ss-sub {
  display: block;
}
.ss-option.is-on {
  color: #ffb74d;
}
.ss-option.is-on::after {
  content: '✓';
  margin-left: 10px;
  font-size: 12px;
}
.site-settings.is-hidden-on-article {
  display: none !important;
}
.site-settings.is-float {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 4000;
}
.site-settings.is-float .site-settings-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
body.detail-tab-white .site-settings.is-float .site-settings-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a2e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.login-register-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.login-register-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.login-register-btn.register {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  border-color: transparent;
}

.login-register-btn.register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 90, 90, 0.4);
}

/* 登榜按钮（跳转后台） */
.bang-btn {
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
  border: none;
  padding: 8px 22px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
  margin-left: 4px;
}

.bang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.hdr-msg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffd56a;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.hdr-msg-btn:hover {
  background: rgba(255, 183, 77, 0.25);
}

.hdr-msg-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.msg-sender {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 160px;
}

.msg-avatar-link {
  display: block;
  flex-shrink: 0;
}

.msg-avatar {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.msg-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.msg-sender-text {
  min-width: 0;
}

.msg-nick {
  display: block;
  color: #ffd56a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.msg-nick:hover {
  text-decoration: underline;
}

.msg-sender-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
}

.msg-vip-hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #ffb74d;
}

.msg-vip-hint:hover {
  text-decoration: underline;
}

.msg-sender-plain {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

.user-dropdown {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.user-avatar-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.user-name {
  font-size: 14px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-arrow {
  font-size: 10px;
  color: #aaa;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.user-dropdown-item {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== 热点榜页面 ===== */
.hot-rank-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hot-rank-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.hot-rank-header:hover {
  padding-left: 8px;
}

.hot-rank-header h2 {
  font-size: 22px;
  flex: 1;
  margin: 0;
}

.hot-rank-icon {
  font-size: 28px;
}

.hot-rank-more {
  font-size: 13px;
  color: #ff6b6b;
}

.hot-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.hot-rank-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.hot-rank-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.hot-rank-no.top3 {
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
}

.hot-rank-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.hot-rank-info {
  flex: 1;
  min-width: 0;
}

.hot-rank-title {
  font-size: 15px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-rank-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* 新架构单列热点榜（renderSingleHotRankSection）使用的样式 */
.hot-rank-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}
.hot-rank-pos.top3 {
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
}
.hot-rank-name {
  font-size: 15px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0f0f0;
}
.hot-rank-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* ===== 商务合作页面 ===== */
.business-intro {
  max-width: 1200px;
  margin: 0 auto;
}

.level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.level-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s;
}

.level-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
}

.level-zongzhu {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 107, 107, 0.05));
  border-color: rgba(255, 215, 0, 0.3);
}

.level-tangzhu {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(155, 89, 182, 0.05));
  border-color: rgba(52, 152, 219, 0.3);
}

.level-bangzhu {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(255, 165, 0, 0.05));
  border-color: rgba(39, 174, 96, 0.3);
}

.level-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 12px;
}

.level-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 16px;
}

.level-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

.level-desc {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.level-features {
  list-style: none;
  padding: 0;
}

.level-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.level-features li:last-child {
  border-bottom: none;
}

/* 期限/费用信息 + 申请按钮 */
.level-meta {
  margin: 18px 0 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.level-term {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}

.level-price {
  font-size: 15px;
  color: #ddd;
}

.level-price strong {
  color: #ffd700;
  font-size: 18px;
  margin-left: 4px;
}

.level-apply-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff;
}

.level-zongzhu .level-apply-btn {
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #000;
}

.level-tangzhu .level-apply-btn {
  background: linear-gradient(90deg, #3498db, #9b59b6);
}

.level-bangzhu .level-apply-btn {
  background: linear-gradient(90deg, #27ae60, #ffa500);
}

.level-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cta-btn {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  border: none;
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(238, 90, 90, 0.5);
}

/* ===== 荣誉证书合作 ===== */
.honor-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px dashed rgba(255, 215, 0, 0.3);
}

.honor-header {
  text-align: center;
  margin-bottom: 30px;
}

.honor-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.honor-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.honor-header p {
  color: #aaa;
  font-size: 15px;
}

.honor-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}

.honor-desc {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.honor-desc p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.honor-desc p:last-child {
  margin-bottom: 0;
}

.honor-desc strong {
  color: #ffd700;
}

.honor-preview {
  display: flex;
  justify-content: center;
}

.honor-certificate {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #fff8e1, #fff);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.cert-border {
  border: 2px solid #d4af37;
  border-radius: 8px;
  padding: 28px 22px;
  text-align: center;
  background: linear-gradient(135deg, #fffdf5, #fff8e1);
}

.cert-title {
  font-size: 26px;
  font-weight: bold;
  color: #8b6914;
  letter-spacing: 8px;
  margin-bottom: 4px;
  font-family: "STKaiti", "KaiTi", serif;
}

.cert-subtitle {
  font-size: 11px;
  color: #b8860b;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cert-divider {
  color: #d4af37;
  font-size: 14px;
  margin-bottom: 18px;
  letter-spacing: 4px;
}

.cert-body {
  color: #5d4e1a;
  font-size: 14px;
  line-height: 2;
  margin-bottom: 18px;
}

.cert-body p {
  margin: 4px 0;
}

.cert-name {
  font-size: 20px;
  font-weight: bold;
  color: #8b6914;
  border-bottom: 1px solid #d4af37;
  display: inline-block;
  padding: 0 20px 4px;
  margin: 8px 0;
  min-width: 180px;
}

.cert-rank {
  font-size: 16px;
  font-weight: bold;
  color: #c0392b;
  margin: 8px 0;
  padding: 4px 12px;
  background: rgba(192, 57, 43, 0.08);
  border-radius: 4px;
  display: inline-block;
}

.cert-body strong {
  color: #8b6914;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed #d4af37;
  padding-top: 16px;
  margin-top: 12px;
}

.cert-issuer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-seal {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.1);
  border: 2px solid #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #c0392b;
}

.cert-issuer-text {
  font-size: 11px;
  color: #8b6914;
  line-height: 1.5;
  text-align: left;
}

.cert-date {
  font-size: 12px;
  color: #8b6914;
  align-self: flex-end;
}

.honor-features {
  grid-column: 1 / -1;
  list-style: none;
  padding: 20px;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.honor-features li {
  padding: 10px 14px;
  font-size: 14px;
  color: #ddd;
  background: rgba(255, 215, 0, 0.04);
  border-radius: 8px;
  border-left: 3px solid #ffd700;
}

.honor-features strong {
  color: #ffd700;
}

/* 荣誉证书左侧申请按钮 */
.honor-apply-btn {
  width: 100%;
  margin-top: 20px;
}

.honor-apply-tip {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

/* 认证流程 */
.honor-process {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 215, 0, 0.3);
}

.honor-process-title {
  font-size: 22px;
  margin-bottom: 24px;
  text-align: center;
  color: #ffd700;
}

.honor-process-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.honor-step {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.3s;
}

.honor-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.06);
}

.honor-step-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff6b6b);
  color: #000;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.honor-step-content h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.honor-step-content p {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  margin: 0;
}

.honor-step-arrow {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #ffd700;
  align-self: center;
}

/* 认证流程响应式 */
@media (max-width: 900px) {
  .honor-process-steps {
    flex-direction: column;
    align-items: center;
  }

  .honor-step {
    max-width: 100%;
    width: 100%;
  }

  .honor-step-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

/* 荣誉证书响应式 */
@media (max-width: 768px) {
  .honor-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .honor-certificate {
    max-width: 100%;
  }

  .cert-title {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .cert-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .honor-features {
    grid-template-columns: 1fr;
  }
}

/* ===== 关于我们页面 ===== */
.about-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.15), transparent);
  border-radius: 16px;
  margin-bottom: 40px;
}

.about-hero-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.about-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero-slogan {
  font-size: 18px;
  color: #ccc;
  letter-spacing: 2px;
}

.about-join-btn {
  margin-top: 22px;
  background: linear-gradient(90deg, #ffd700, #ff6b6b);
  color: #1a1208;
  border: none;
  padding: 12px 36px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.about-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.45);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.about-section {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b6b, #ffd700);
}

.about-section-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.about-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #fff;
}

.about-content p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 14px;
}

.about-content strong {
  color: #ffd700;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* 核心功能卡片网格 */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.about-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s;
}

.about-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.05);
}

.about-feature-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.about-feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.about-feature-card p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* 未来方向列表 */
.about-future-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.about-future-list li {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: rgba(255, 215, 0, 0.04);
  border-left: 3px solid #ffd700;
  border-radius: 8px;
  color: #ddd;
  font-size: 14px;
  line-height: 1.7;
}

.about-future-list strong {
  color: #ffd700;
  margin-right: 6px;
}

.about-vision {
  margin-top: 24px !important;
  padding: 18px !important;
  text-align: center;
  font-size: 18px !important;
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.06);
  border-radius: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* 全球招聘 */
.about-recruit {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06), rgba(155, 89, 182, 0.04));
  border-color: rgba(52, 152, 219, 0.2);
}

/* ===== L3 排行榜页面布局 ===== */
.l3-page-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l3-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.l3-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.l3-section-header h2 {
  font-size: 18px;
  margin: 0;
  color: #fff;
}

.l3-section-count {
  font-size: 13px;
  color: #888;
}

.l3-scroll-container {
  max-height: none;
  overflow-y: visible;
  padding-right: 8px;
}

/* 文章列表保留独立滚动 */
.l3-article-scroll {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 8px;
}

.l3-article-scroll::-webkit-scrollbar {
  width: 6px;
}

.l3-article-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.l3-article-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.l3-article-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.l3-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.l3-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.l3-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.l3-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== 榜单项模板: Classic ===== */
.template-classic .ranking-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.template-classic .ranking-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.template-classic .ranking-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.template-classic .ranking-rank.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.template-classic .ranking-rank.rank-2 { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); color: #000; }
.template-classic .ranking-rank.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

.template-classic .ranking-info {
  flex: 1;
  min-width: 0;
}

.template-classic .ranking-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
}

.template-classic .ranking-info p {
  font-size: 13px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.template-classic .ranking-detail-btn {
  background: linear-gradient(90deg, #3498db, #2980b9);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-left: 10px;
}

.template-classic .ranking-detail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.template-classic .ranking-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #888;
  margin-left: 10px;
  flex-shrink: 0;
}

/* ===== 榜单项模板: Gold (金榜题名) ===== */
.template-gold .ranking-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(30, 30, 50, 0.6));
  border: 1px solid rgba(255, 215, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.template-gold .ranking-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ffd700, #ff6b35);
}

.template-gold .ranking-item:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(30, 30, 50, 0.8));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.template-gold .ranking-rank {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin-right: 18px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.template-gold .ranking-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  font-size: 32px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.template-gold .ranking-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.template-gold .ranking-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
}

.template-gold .ranking-info {
  flex: 1;
  min-width: 0;
}

.template-gold .ranking-info h3 {
  font-size: 17px;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.template-gold .ranking-info p {
  font-size: 13px;
  color: #b8b8c8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.template-gold .ranking-value {
  font-size: 14px;
  color: #ffd700;
  font-weight: bold;
  margin-right: 12px;
  white-space: nowrap;
}

.template-gold .ranking-detail-btn {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}

.template-gold .ranking-detail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 15px rgba(255, 215, 0, 0.4);
}

/* ===== 榜单项模板: Neon (霓虹科技) ===== */
.template-neon .ranking-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s;
}

.template-neon .ranking-item:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.template-neon .ranking-rank {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  margin-right: 14px;
  flex-shrink: 0;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.template-neon .ranking-rank.rank-1 { background: #ff00ff; color: #fff; border-color: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
.template-neon .ranking-rank.rank-2 { background: #00ffff; color: #000; border-color: #00ffff; box-shadow: 0 0 10px #00ffff; }
.template-neon .ranking-rank.rank-3 { background: #ffff00; color: #000; border-color: #ffff00; box-shadow: 0 0 10px #ffff00; }

.template-neon .ranking-info {
  flex: 1;
  min-width: 0;
}

.template-neon .ranking-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
  font-family: 'Courier New', monospace;
}

.template-neon .ranking-info p {
  font-size: 13px;
  color: #7fdbff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: 'Courier New', monospace;
}

.template-neon .ranking-detail-btn {
  background: rgba(0, 255, 255, 0.15);
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}

.template-neon .ranking-detail-btn:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ===== 榜单项模板: Elegant (优雅杂志) ===== */
.template-elegant .ranking-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 0;
  margin-bottom: 2px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s;
}

.template-elegant .ranking-item:last-child {
  border-bottom: none;
}

.template-elegant .ranking-item:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 24px;
}

.template-elegant .ranking-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  margin-right: 20px;
  flex-shrink: 0;
  background: transparent;
  color: #888;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: Georgia, serif;
}

.template-elegant .ranking-rank.rank-1 {
  background: #c9a96e;
  color: #fff;
  border-color: #c9a96e;
  font-weight: bold;
}

.template-elegant .ranking-rank.rank-2 {
  background: #a0a0a0;
  color: #fff;
  border-color: #a0a0a0;
}

.template-elegant .ranking-rank.rank-3 {
  background: #cd7f32;
  color: #fff;
  border-color: #cd7f32;
}

.template-elegant .ranking-info {
  flex: 1;
  min-width: 0;
}

.template-elegant .ranking-info h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 400;
  font-family: Georgia, serif;
}

.template-elegant .ranking-info p {
  font-size: 13px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: Georgia, serif;
  line-height: 1.6;
}

.template-elegant .ranking-detail-btn {
  background: transparent;
  color: #c9a96e;
  border: 1px solid #c9a96e;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
  font-family: Georgia, serif;
  letter-spacing: 1px;
}

.template-elegant .ranking-detail-btn:hover {
  background: #c9a96e;
  color: #fff;
}

/* ===== 榜单项模板: Sports (赛场风云) ===== */
.template-sports .ranking-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.08), transparent);
  border-left: 3px solid #2ecc71;
  cursor: pointer;
  transition: all 0.3s;
}

.template-sports .ranking-item:hover {
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.18), transparent);
  border-left-color: #27ae60;
  transform: translateX(4px);
}

.template-sports .ranking-rank {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  margin-right: 14px;
  flex-shrink: 0;
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.template-sports .ranking-rank.rank-1 { background: #e74c3c; color: #fff; }
.template-sports .ranking-rank.rank-2 { background: #3498db; color: #fff; }
.template-sports .ranking-rank.rank-3 { background: #f39c12; color: #fff; }

.template-sports .ranking-info {
  flex: 1;
  min-width: 0;
}

.template-sports .ranking-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 700;
}

.template-sports .ranking-info p {
  font-size: 13px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.template-sports .ranking-points {
  font-size: 14px;
  color: #2ecc71;
  font-weight: bold;
  margin-right: 12px;
  white-space: nowrap;
}

.template-sports .ranking-detail-btn {
  background: #2ecc71;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}

.template-sports .ranking-detail-btn:hover {
  background: #27ae60;
  transform: scale(1.05);
}

/* ===== 榜单项全局元素样式 ===== */
.ranking-value {
  font-size: 16px;
  font-weight: bold;
  color: #e67e22;
  padding: 4px 14px;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ranking-points {
  font-size: 18px;
  font-weight: 800;
  color: #e74c3c;
  padding: 4px 14px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ranking-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: none;
  border-radius: 14px;
  background: rgba(52, 152, 219, 0.15);
  color: #5dade2;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-left: 8px;
  white-space: nowrap;
}

.ranking-detail-btn:hover {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

/* L3 "更多" 按钮 */
.l3-load-more-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  color: #5dade2;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.l3-load-more-btn:hover {
  background: rgba(52, 152, 219, 0.1);
  border-color: #3498db;
  color: #fff;
}

/* ===== L3 文章列表样式 ===== */
.l3-article-item {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s;
}

.l3-article-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.l3-article-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 14px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.l3-article-thumb-placeholder {
  width: 100px;
  height: 70px;
  border-radius: 6px;
  margin-right: 14px;
  flex-shrink: 0;
  background: rgba(52, 152, 219, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.l3-article-info {
  flex: 1;
  min-width: 0;
}

.l3-article-info h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.l3-article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* 榜单项详情按钮（详情链接样式） */
.ranking-link-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #3498db;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.ranking-link-detail:hover {
  color: #5dade2;
  text-decoration: underline;
}

.about-recruit::before {
  background: linear-gradient(180deg, #3498db, #9b59b6);
}

.about-recruit-intro {
  font-size: 16px !important;
  text-align: center;
  margin-bottom: 24px !important;
}

.about-recruit-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.recruit-role {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s;
}

.recruit-role:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 152, 219, 0.4);
}

.recruit-role-badge {
  display: inline-block;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.recruit-role h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
}

.recruit-role p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  margin: 0;
}

.about-recruit-vision {
  text-align: center;
  font-size: 15px !important;
  color: #ccc !important;
  padding: 16px !important;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

/* 联系我们 */
.about-contact {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(255, 165, 0, 0.03));
  border-color: rgba(39, 174, 96, 0.2);
}

.about-contact::before {
  background: linear-gradient(180deg, #27ae60, #ffa500);
}

.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.about-contact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s;
}

.about-contact-item:hover {
  transform: translateY(-3px);
  border-color: rgba(39, 174, 96, 0.4);
  background: rgba(39, 174, 96, 0.05);
}

.about-contact-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-contact-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.about-contact-value {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  word-break: break-all;
}

.about-contact-note {
  text-align: center;
  font-size: 13px !important;
  color: #888 !important;
  margin-top: 16px !important;
}

/* 关于我们响应式 */
@media (max-width: 768px) {
  .about-hero {
    padding: 40px 16px 28px;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .about-hero-slogan {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .about-section {
    padding: 24px 18px;
  }

  .about-section h2 {
    font-size: 22px;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .about-recruit-roles {
    grid-template-columns: 1fr;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }

  .about-vision {
    font-size: 15px !important;
  }
}

/* ===== 成为榜主/注册页面 ===== */
.register-section {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.register-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 10px;
}

.register-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #aaa;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.register-tab.active {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  color: #fff;
}

.register-form h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.form-tip {
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
#messageModal textarea {
  color: #1a1a2e;
  background: #fff;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
  border: 1px solid #ddd;
}
#messageModal textarea::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

/* 下拉框 option 在深色背景下需要明确指定颜色，否则浏览器默认白底白字不可见 */
.form-group select option {
  background: #1a1a2e;
  color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 90, 90, 0.4);
}

.form-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #888;
}

.form-footer a {
  color: #ff6b6b;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ==================================================== */
/*  两列申请表单：左列申请信息 + 右列管理员信息          */
/* ==================================================== */
.apply-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.apply-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.apply-col-admin {
  background: rgba(255, 107, 107, 0.04);
  border-color: rgba(255, 107, 107, 0.2);
  position: relative;
}

.apply-col-admin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #ffa26b);
  border-radius: 12px 12px 0 0;
}

.apply-col-title {
  font-size: 16px;
  margin: 0 0 6px 0;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.apply-col-icon {
  font-size: 20px;
  margin-right: 8px;
  line-height: 1;
}

.apply-col-admin-tip {
  font-size: 12px;
  color: #b0b0c0;
  margin: 0 0 14px 0;
  padding: 10px 12px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.18);
  border-radius: 8px;
  line-height: 1.5;
}

.admin-info-preview {
  margin-top: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.admin-info-preview .preview-title {
  font-size: 13px;
  color: #ff9a9a;
  margin-bottom: 8px;
}

.admin-info-preview ul {
  margin: 0;
  padding-left: 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.9;
}

.admin-info-preview ul li {
  list-style: "✅ ";
}

.required {
  color: #ff6b6b;
  margin-left: 2px;
}

/* 手机端自适应：改为单列 */
@media (max-width: 768px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .apply-col {
    padding: 16px;
  }
}


/* ===== 个人中心（与主页同色：深色渐变底、白字、红金强调） ===== */
#profile-page {
  color: #fff;
  font-family: inherit;
}

#profile-page .uc-login-hint {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.uc-shell {
  display: flex;
  align-items: stretch;
  height: calc(100dvh - 200px);
  max-height: calc(100dvh - 200px);
  min-height: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.uc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.uc-user {
  padding: 22px 18px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uc-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.uc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-username {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
  margin: 8px 0 6px;
}

.uc-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.uc-lv-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.uc-lv-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.uc-lv-icon.lv-4 {
  filter: drop-shadow(0 0 4px rgba(180, 230, 255, 0.85));
}

.uc-lv-icon.lv-5 {
  filter: drop-shadow(0 0 5px rgba(80, 160, 255, 0.9));
}

.uc-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.uc-star-item {
  width: 13px;
  height: 13px;
  display: inline-flex;
}

.uc-star-shape {
  width: 100%;
  height: 100%;
  display: block;
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.uc-stars.lv-1 .uc-star-item.on .uc-star-shape {
  fill: #c47a3a;
  stroke: #8b4e1a;
  filter: drop-shadow(0 0 1px #cd7f32);
}

.uc-stars.lv-2 .uc-star-item.on .uc-star-shape {
  fill: #e8eef5;
  stroke: #9aa7b5;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
}

.uc-stars.lv-3 .uc-star-item.on .uc-star-shape {
  fill: #ffd56a;
  stroke: #d4a017;
  filter: drop-shadow(0 0 2px #e6a23c);
}

.uc-stars.lv-4 .uc-star-item.on .uc-star-shape {
  fill: #f4fbff;
  stroke: #9ad8ff;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #7ecbff);
  animation: ucCrystalStar 1.8s ease-in-out infinite;
}

.uc-stars.lv-5 .uc-star-item.on .uc-star-shape {
  fill: #7ec8ff;
  stroke: #d6f0ff;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #3d9fff);
  animation: ucCrystalStar 1.6s ease-in-out infinite;
}

@keyframes ucCrystalStar {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

.uc-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: #ccc;
}

.uc-score-row b {
  color: #ffd56a;
  font-size: 16px;
  font-weight: 700;
}

.uc-checkin-btn {
  border: 1px solid rgba(255, 183, 77, 0.55);
  background: rgba(255, 183, 77, 0.16);
  color: #ffd56a;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
}

.uc-checkin-btn:hover:not(:disabled) {
  background: rgba(255, 183, 77, 0.3);
}

.uc-checkin-btn.done,
.uc-checkin-btn:disabled {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #888;
  cursor: default;
}

.uc-complete-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.uc-complete-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  border-radius: 99px;
}

.uc-complete-pct {
  color: #ffb74d;
  font-weight: 600;
  min-width: 32px;
}

.uc-menu {
  padding: 8px 0 16px;
  flex: 1;
}

.uc-menu-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.uc-menu-group-title:hover {
  background: rgba(255, 255, 255, 0.08);
}

.uc-menu-group-title .uc-chevron {
  color: #888;
  font-size: 12px;
  transition: transform 0.2s;
}

.uc-menu-group.open .uc-chevron {
  transform: rotate(90deg);
}

.uc-menu-sub {
  display: none;
}

.uc-menu-group.open .uc-menu-sub {
  display: block;
}

.uc-menu-item {
  padding: 9px 18px 9px 32px;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.uc-menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.uc-menu-item.active {
  color: #ffb74d;
  font-weight: 600;
  background: rgba(255, 183, 77, 0.12);
}

.uc-menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffb74d;
}

.uc-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 6px 28px 6px;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.uc-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uc-main-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc-main-head h2 i {
  width: 3px;
  height: 16px;
  background: #ff6b6b;
  border-radius: 2px;
  display: inline-block;
}

.uc-main-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.uc-main-extra .uc-btn-primary {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 16px;
}

.uc-preview {
  font-size: 13px;
  color: #ffb74d;
  text-decoration: none;
}

.uc-preview:hover {
  text-decoration: underline;
}

.uc-person-panel {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.uc-person-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uc-person-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.uc-person-head-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.uc-person-head .uc-preview {
  font-size: 16px;
  font-weight: 600;
}

.uc-person-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px 20px 20px;
}

.uc-person-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.uc-person-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.uc-person-cat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.uc-person-cat label {
  color: #aaa;
  font-size: 13px;
  white-space: nowrap;
}

.uc-person-cat select {
  width: auto;
  min-width: 88px;
  max-width: 150px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
}

/* Windows 原生 option 列表多为浅色底，不能继承 select 的白色字 */
.uc-person-cat select option {
  background: #fff;
  color: #1a1a2e;
}

.uc-person-cat select option:checked,
.uc-person-cat select option:hover {
  background: #e8eaf2;
  color: #1a1a2e;
}

.uc-person-cat select option:disabled {
  color: #888;
}

.uc-person-foot-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.uc-person-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uc-person-status label {
  color: #aaa;
  font-size: 14px;
  white-space: nowrap;
}

.uc-person-status select {
  min-width: 110px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
}

.uc-person-foot-actions {
  display: flex;
  gap: 10px;
  margin-right: 20px;
}

.uc-person-foot .uc-btn-primary,
.uc-person-foot .btn-danger {
  min-width: 88px;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
}

.uc-person-avatar-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

.uc-person-avatar-hint {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}

.uc-person-avatar-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

#upAvatarPreview {
  width: 120px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 107, 107, 0.4);
  border-radius: 8px;
  object-fit: cover;
  display: none;
}

#upAvatarPlaceholder {
  width: 120px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 107, 107, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.uc-person-avatar-ops {
  flex: 1;
  min-width: 0;
}

.uc-person-avatar-ops input {
  width: 100%;
  box-sizing: border-box;
}

.uc-person-avatar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.uc-person-upload-btn {
  padding: 8px 14px;
  font-size: 12px;
}

.uc-main-body {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.uc-main-body > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.uc-main-body > .profile-toolbar,
.uc-main-body > .profile-sub-tabs,
.uc-main-body > .uc-hint,
.uc-main-body > .loading,
.uc-main-body > .profile-empty {
  flex-shrink: 0;
}

.uc-main-body > .uc-basic,
.uc-main-body > .uc-person-panel,
.uc-main-body > .uc-msg-list,
.uc-main-body > .uc-msg-thread,
.uc-main-body > .uc-apply-list,
.uc-main-body > .uc-vip-grid,
.uc-main-body > .uc-fill,
.uc-main-body > .profile-list,
.uc-main-body > .profile-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.uc-fill,
.profile-list-wrap {
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.uc-main-body > .uc-msg-list,
.uc-main-body > .uc-apply-list,
.uc-main-body > .uc-vip-grid,
.uc-main-body > .profile-list {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.uc-fixed-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.7;
  position: relative;
}

.uc-fixed-box b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.uc-fixed-box .uc-edit-link {
  position: absolute;
  right: 16px;
  top: 14px;
  color: #ffb74d;
  font-size: 13px;
  cursor: pointer;
}

.uc-form-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.uc-form-row label {
  width: 72px;
  padding-top: 9px;
  font-size: 13px;
  color: #aaa;
  flex-shrink: 0;
  text-align: right;
}

.uc-form-row .uc-field {
  flex: 1;
  min-width: 0;
}

.uc-form-row input[type="text"],
.uc-form-row select {
  width: 100%;
  max-width: 420px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
}

.uc-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

.uc-counter {
  float: right;
  color: #666;
}

.uc-actions {
  padding-left: 84px;
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.uc-btn-primary {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 14px;
  cursor: pointer;
}

.uc-btn-primary:hover {
  filter: brightness(1.1);
}

.uc-btn-ghost {
  background: transparent;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 14px;
  cursor: pointer;
}

.uc-avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
}

.uc-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.uc-avatar-edit .uc-avatar {
  margin: 0;
  flex-shrink: 0;
}

.uc-avatar-edit .uc-badges {
  margin: 0;
}

.uc-avatar-btn {
  display: inline-block;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
}

.uc-avatar-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.uc-basic {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.uc-basic-side {
  width: 240px;
  flex-shrink: 0;
  padding: 28px 22px;
  background: rgba(0, 0, 0, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.uc-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-stat-label {
  font-size: 12px;
  color: #888;
}

.uc-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.uc-stat-score {
  font-size: 22px;
}

.uc-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #cd7f32;
}

.uc-level-badge.lv-1 { background: #cd7f32; }
.uc-level-badge.lv-2 { background: #8e9aa8; }
.uc-level-badge.lv-3 { background: #e6a23c; }
.uc-level-badge.lv-4 { background: #5b8def; }
.uc-level-badge.lv-5 { background: #3d7eff; }

.uc-basic-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.uc-basic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-top: 22px;
}

.uc-pwd-row {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px 20px;
  margin-top: 18px;
}

.uc-pwd-row.is-open {
  display: grid;
}

.uc-field-block label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #aaa;
  text-align: left;
}

.uc-field-block input {
  width: 100%;
  max-width: none;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.uc-field-block input:disabled {
  color: #ccc;
  opacity: 0.85;
  cursor: default;
}

.uc-basic-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.uc-basic-foot .uc-btn-primary,
.uc-basic-foot .uc-btn-ghost {
  min-width: 88px;
  border-radius: 8px;
}

.uc-vip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.uc-vip-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 14px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.uc-vip-card.current {
  border-color: rgba(255, 183, 77, 0.45);
  background: rgba(255, 183, 77, 0.1);
}

.uc-vip-card.lv-1 h3 { color: #e8a56a; }
.uc-vip-card.lv-2 h3 { color: #dfe7ef; }
.uc-vip-card.lv-3 h3 { color: #ffd56a; }
.uc-vip-card.lv-4 h3 { color: #9ad8ff; }

.uc-vip-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #fff;
  text-align: center;
}

.uc-vip-price {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffb74d;
  margin-bottom: 12px;
}

.uc-vip-perks {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  flex: 1;
  font-size: 13px;
  color: #ccc;
  line-height: 1.7;
}

.uc-vip-perks li {
  margin-bottom: 4px;
}

.uc-vip-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
}

.uc-vip-card .uc-vip-tag {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #ffb74d;
  margin-bottom: 6px;
  min-height: 18px;
}

.uc-vip-card .uc-vip-tag-empty {
  color: transparent;
}

.uc-vip-card .uc-btn-primary,
.uc-vip-card .uc-btn-ghost {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .uc-vip-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#profile-page input,
#profile-page select,
#profile-page textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* 展开的 option 用深字浅底，避免 Windows Chrome 白底白字；闭合 select 仍用上方白色字 */
#profile-page select option {
  background: #fff;
  color: #1a1a2e;
}

#profile-page select option:checked,
#profile-page select option:hover {
  background: #e8eaf2;
  color: #1a1a2e;
}

#profile-page select option:disabled {
  color: #888;
}

#profile-page label {
  color: #aaa;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.profile-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
}

.profile-item-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-item-cover.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
}

.profile-item-body {
  flex: 1;
  min-width: 0;
}

.profile-item-title {
  font-size: 15px;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.profile-item-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #888;
  flex-wrap: wrap;
}

.profile-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-link {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #4ecdc4;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.btn-danger {
  background: rgba(231, 76, 60, 0.15);
  border: none;
  color: #e74c3c;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.profile-empty {
  text-align: center;
  color: #888;
  padding: 48px 0;
}

.badge-read,
.badge-unread {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}

.badge-read {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.badge-unread {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.msg-item.unread {
  border-left: 3px solid #ff6b6b;
}

.msg-item {
  align-items: flex-start;
}

.profile-sub-tabs {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-sub-tab {
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  color: #aaa;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.profile-sub-tab:hover {
  color: #fff;
  border-color: rgba(255, 183, 77, 0.4);
}

.profile-sub-tab.active {
  color: #1a1a1a;
  background: #ffb74d;
  border-color: #ffb74d;
  font-weight: 600;
}

.profile-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.uc-apply-list,
.uc-msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-apply-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.uc-apply-type {
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 183, 77, 0.14);
  color: #ffb74d;
  font-size: 12px;
  font-weight: 600;
}

.uc-apply-body {
  flex: 1;
  min-width: 0;
}

.uc-apply-body h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
}

.uc-apply-status {
  flex-shrink: 0;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
}

.uc-apply-status.pending {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.uc-apply-status.approved {
  background: rgba(78, 205, 196, 0.18);
  color: #4ecdc4;
}

.uc-apply-status.rejected {
  background: rgba(255, 107, 107, 0.18);
  color: #ff6b6b;
}

.uc-msg-peer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.uc-msg-peer:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
}

.uc-msg-peer.unread {
  border-left: 3px solid #ff6b6b;
}

.uc-msg-peer-body {
  flex: 1;
  min-width: 0;
}

.uc-msg-peer-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc-msg-preview {
  margin-top: 6px;
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-msg-peer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.uc-msg-time {
  font-size: 12px;
  color: #888;
}

.uc-msg-peer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.uc-msg-reply-btn,
.uc-msg-del-btn {
  padding: 5px 14px;
  font-size: 12px;
}

.uc-msg-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.uc-msg-thread-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uc-msg-thread-peer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.uc-msg-bubbles {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-msg-bubble {
  max-width: 78%;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
}

.uc-msg-bubble.mine {
  align-self: flex-end;
  background: rgba(255, 183, 77, 0.18);
  border-radius: 12px 12px 4px 12px;
}

.uc-msg-bubble-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.uc-msg-bubble-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

.uc-msg-reply {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.uc-msg-reply textarea {
  flex: 1;
  min-height: 44px;
  resize: vertical;
  padding: 8px 10px;
  border-radius: 8px;
}

.uc-pager,
.profile-pagination {
  flex-shrink: 0;
  width: 100%;
  margin-top: 16px;
}

.uc-pager:empty,
.profile-pagination:empty {
  display: none;
  margin: 0;
}

.pagination .page-info {
  color: #aaa;
  font-size: 13px;
  align-self: center;
}

@media (max-width: 768px) {
  .uc-shell {
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .uc-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
    touch-action: pan-y;
  }

  .uc-vip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .uc-basic {
    flex-direction: column;
  }

  .uc-basic-side {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .uc-basic-grid,
  .uc-pwd-row {
    grid-template-columns: 1fr;
  }

  .uc-main,
  .uc-main-body {
    overflow: visible;
    max-height: none;
  }

  .uc-form-row {
    flex-direction: column;
    gap: 6px;
  }

  .uc-form-row label,
  .uc-actions {
    width: auto;
    padding-left: 0;
    text-align: left;
  }

  .profile-item {
    flex-wrap: wrap;
  }

  .profile-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .uc-vip-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
  .header-right {
    display: none;
  }
  .site-settings-slot {
    margin-left: auto;
    margin-right: 6px;
  }

  .level-cards {
    grid-template-columns: 1fr;
  }

  .hot-rank-thumb {
    width: 40px;
    height: 40px;
  }

  .hot-rank-title {
    font-size: 14px;
  }

  .user-name {
    max-width: 70px;
  }
}

/* ===== Person 详情弹窗：标题栏与榜单详情一致 ===== */
#personDetailModal.overlay .modal-content,
#personDetailModal.fullscreen .modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  height: 100vh;
  max-height: 100vh;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
#personDetailModal .modal-header {
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 12px;
}
#personDetailModal .modal-header h2 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  flex: 1 1 140px;
  min-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#personDetailModal .close-btn {
  font-size: 32px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
#personDetailModal .close-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}
#personDetailModal.overlay .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: transparent;
  padding: 0 0 12px;
}
#personDetailModal.overlay .l3-standalone-header,
#personDetailModal.overlay .pd-page-topbar {
  display: none;
}
#personDetailModal.fullscreen {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  justify-content: center;
  align-items: stretch;
}
#personDetailModal.fullscreen .modal-header {
  display: flex;
  align-items: center;
}
#personDetailModal.fullscreen .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
}
#personDetailModal.fullscreen .l3-standalone-header {
  flex-shrink: 0;
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 12px 16px;
}
#personDetailModal.fullscreen .l3-standalone-title {
  flex: 1 1 140px;
  min-width: 120px;
  font-size: 16px;
}
#personDetailModal.fullscreen .l3-standalone-back {
  padding: 4px 12px;
  font-size: 13px;
}
#personDetailModal.overlay .pd-page,
#personDetailModal.fullscreen .pd-page {
  max-width: none;
  width: 100%;
  margin: 0;
}
#personDetailModal.fullscreen .pd-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: none;
}
#personDetailModal.fullscreen.maximized .modal-content {
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  margin: 0;
}

/* ===== Person 详情内容 (.pd-page) — 与主页深色主题一致 ===== */
.pd-page {
  max-width: 960px;
  margin: 0 auto;
  background: transparent;
  min-height: 100%;
  color: #fff;
  font-family: inherit;
}

.pd-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.16) 0%, rgba(22, 33, 62, 0.92) 55%, rgba(15, 52, 96, 0.95) 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pd-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 200, 80, 0.16) 0%, transparent 55%);
  opacity: 1;
  pointer-events: none;
}
.pd-hero-inner { position: relative; display: flex; gap: 28px; padding: 28px 28px 32px; align-items: stretch; }
.pd-hero-left { flex: 0 0 auto; display: flex; align-items: center; }
.pd-hero-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.pd-hero-photo { width: 200px; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.15); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.pd-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero-photo-empty { display: flex; align-items: center; justify-content: center; font-size: 72px; color: rgba(255,255,255,.6); }

/* 右行1：昵称 + ID + 统计 + 关注 全部同一行 */
.pd-hero-line1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-name { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pd-stats-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.pd-stats-inline > span:not(.pd-like-btn),
.pd-stats-inline > button:not(.pd-follow-btn) {
  background: rgba(255,255,255,.15);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.pd-core-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Tag 样式 --- */
.pd-tag { display: inline-block; background: rgba(255, 255, 255, 0.1); color: #fff; padding: 4px 12px; border-radius: 16px; font-size: 13px; line-height: 1.6; border: 1px solid rgba(255, 255, 255, 0.12); }
.pd-profile-tags .pd-tag { background: rgba(255, 107, 107, 0.16); color: #ffb4b4; border-color: rgba(255, 107, 107, 0.3); }
.pd-tag-outline { background: rgba(255, 183, 77, 0.12); color: #ffb74d; border: 1px solid rgba(255, 183, 77, 0.4); }

/* --- 相册 --- */
/* 旧 gallery/carousel 清理 */
.pd-gallery, .pd-gallery-main, .pd-gallery-counter, .pd-gallery-thumbs, .pd-carousel { display: none; }

/* --- 操作按钮 --- */
.pd-action-bar { display: flex; gap: 12px; padding: 20px 16px 8px; }
.pd-action-btn { flex: 1; padding: 14px; border-radius: 28px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pd-action-btn:active { transform: translateY(1px); }
.pd-action-hi { background: transparent; color: #ffb74d; border: 1px solid rgba(255, 183, 77, 0.45); box-shadow: none; }
.pd-action-hi:hover { background: rgba(255, 183, 77, 0.12); }
.pd-action-msg { background: linear-gradient(90deg, #ff6b6b, #ee5a5a); color: #fff; box-shadow: 0 4px 16px rgba(255, 107, 107, 0.28); }

/* --- 分区 section --- */
.pd-section { background: rgba(255, 255, 255, 0.05); border-radius: 14px; margin: 14px 16px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.pd-section-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.pd-profile-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-inner-self { font-size: 15px; line-height: 1.85; color: #ddd; margin: 0; white-space: pre-wrap; }
.pd-empty { color: #777; font-size: 14px; }
.pd-rich { font-size: 15px; line-height: 1.85; color: #ddd; }
.pd-rich img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.pd-rich p { margin-bottom: 10px; }
.pd-contact { display: flex; flex-wrap: wrap; gap: 10px; }

.pd-page-topbar { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(10px); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.pd-back-btn { background: rgba(255,255,255,.15); color: #fff; border: none; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.pd-back-btn:hover { background: rgba(255,255,255,.28); }
.pd-share-btn { background: rgba(255,255,255,.15); color: #fff; border: none; padding: 8px 14px; border-radius: 20px; cursor: pointer; font-size: 14px; }
.pd-share-btn:hover { background: rgba(255,255,255,.28); }

/* ========== mini 图条（右列第二行，高度 = 头像高的 3/5 ≈ 120px） ========== */
.pd-hero-right-bottom { flex: 1; min-height: 0; display: flex; align-items: center; }
.pd-mini-thumbs { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(255,255,255,.12); border-radius: 10px; backdrop-filter: blur(4px); width: 100%; min-height: 110px; }
.pd-mini-strip { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; height: 100%; min-height: 92px; }
.pd-mini-strip::-webkit-scrollbar { display: none; }
.pd-mini-strip img { height: 100%; min-height: 92px; max-height: 100px; width: auto; min-width: 92px; max-width: 120px; object-fit: cover; border-radius: 7px; cursor: pointer; flex-shrink: 0; border: 1px solid rgba(255,255,255,.3); transition: transform .15s, border-color .15s; }
.pd-mini-strip img:hover { transform: scale(1.04); border-color: #fff; }
.pd-mini-video { height: 100%; min-height: 92px; width: 96px; border-radius: 7px; background: linear-gradient(135deg, #1a1a2e, #0f3460); flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,.3); }
.pd-mini-video span { color: #fff; font-size: 22px; }
.pd-mini-arrow { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pd-mini-arrow:hover { background: rgba(0,0,0,.6); }

/* ========== Hero 徽章 & 点赞 ========== */
.pd-id-badge { background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 14px; font-size: 14px; color: rgba(255,255,255,.9); font-family: monospace; font-weight: 600; }
.pd-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-stats > span { background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 18px; font-size: 13px; }
.pd-like-btn,
.pd-follow-btn,
.article-like-btn,
.article-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  min-width: 72px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color .15s, background .15s, border-color .15s;
}
.pd-like-btn .ia-thumb,
.article-like-btn .ia-thumb {
  flex-shrink: 0;
  display: block;
}
.pd-like-btn,
.article-like-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
}
.pd-like-btn:hover,
.article-like-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}
.pd-like-btn.active,
.pd-like-btn.pd-liked,
.article-like-btn.active {
  color: #ffd700 !important;
  background: rgba(255, 215, 0, 0.16) !important;
}
.pd-like-btn:active,
.article-like-btn:active { transform: scale(.92); }
.pd-like-btn.pd-liked { animation: pd-pop .3s ease; }
.pd-follow-btn,
.article-follow-btn {
  background: transparent !important;
  color: #ff4d4f !important;
  border: 1px solid #ff4d4f !important;
}
.pd-follow-btn:hover,
.article-follow-btn:hover {
  background: rgba(255, 77, 79, 0.12) !important;
}
.pd-follow-btn.pd-followed,
.pd-follow-btn.followed,
.article-follow-btn.followed {
  background: #ff4d4f !important;
  color: #fff !important;
  border-color: #ff4d4f !important;
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-like-btn,
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .pd-like-btn {
  background: #f2f3f5 !important;
  color: #1a1a2e !important;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e !important;
}
#rankDetailModal.fullscreen.tab-white .pd-like-btn,
#personDetailModal.fullscreen.tab-white .pd-like-btn,
#articleModal.site-theme.fullscreen.tab-white .pd-like-btn,
#articleModal.site-theme.fullscreen.tab-white .article-like-btn {
  background: #f2f3f5 !important;
  color: #1a1a2e !important;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e !important;
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-like-btn:hover,
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .pd-like-btn:hover {
  background: #e5e6eb !important;
}
#rankDetailModal.fullscreen.tab-white .pd-like-btn:hover,
#personDetailModal.fullscreen.tab-white .pd-like-btn:hover,
#articleModal.site-theme.fullscreen.tab-white .pd-like-btn:hover,
#articleModal.site-theme.fullscreen.tab-white .article-like-btn:hover {
  background: #e5e6eb !important;
}
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .article-like-btn.active,
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .pd-like-btn.active,
.article-modal.fullscreen:not(.site-theme):not(.tab-night) .pd-like-btn.pd-liked {
  color: #d4a017 !important;
  background: #f2f3f5 !important;
  -webkit-text-fill-color: #d4a017 !important;
}
#rankDetailModal.fullscreen.tab-white .pd-like-btn.active,
#rankDetailModal.fullscreen.tab-white .pd-like-btn.pd-liked,
#personDetailModal.fullscreen.tab-white .pd-like-btn.active,
#personDetailModal.fullscreen.tab-white .pd-like-btn.pd-liked,
#articleModal.site-theme.fullscreen.tab-white .pd-like-btn.active,
#articleModal.site-theme.fullscreen.tab-white .pd-like-btn.pd-liked,
#articleModal.site-theme.fullscreen.tab-white .article-like-btn.active {
  color: #d4a017 !important;
  background: #f2f3f5 !important;
  -webkit-text-fill-color: #d4a017 !important;
}
@keyframes pd-pop { 0%{transform:scale(1)} 50%{transform:scale(1.18)} 100%{transform:scale(1)} }
.pd-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.pd-lightbox.active { display: flex; }
.pd-lb-content { max-width: 88vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.pd-lb-content img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.pd-lb-content video { max-width: 88vw; max-height: 88vh; border-radius: 6px; }
.pd-lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 50px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 2; }
.pd-lb-arrow:hover { background: rgba(255,255,255,.3); }
.pd-lb-prev { left: 24px; }
.pd-lb-next { right: 24px; }
.pd-lb-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.pd-lb-close:hover { background: rgba(255,255,255,.3); }
.pd-lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(255,255,255,.15); padding: 4px 14px; border-radius: 14px; font-size: 13px; }

/* ========== 兴趣爱好分组 ========== */
.pd-hobby-groups { display: flex; flex-direction: column; gap: 10px; }
.pd-hobby-row { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.pd-hobby-label { flex-shrink: 0; width: 90px; font-size: 13px; color: #888; padding-top: 5px; }
.pd-hobby-val { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-pair-tag { display: block; padding: 6px 0; font-size: 14px; color: #ddd; }
.pd-pair-tag b { color: #888; font-weight: 500; margin-right: 6px; }

.pd-comment-form { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 14px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, 0.08); }
.pd-comment-form textarea { width: 100%; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 10px 12px; font-size: 14px; resize: vertical; font-family: inherit; box-sizing: border-box; color: #fff !important; background: rgba(255, 255, 255, 0.06) !important; }
.pd-comment-form textarea::placeholder { color: #777; }
.pd-comment-form textarea:focus { outline: none; border-color: #ffb74d; background: rgba(255, 255, 255, 0.08); }
.pd-comment-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
.pd-comment-submit-btn { background: linear-gradient(90deg, #ff6b6b, #ee5a5a); color: #fff; border: none; padding: 8px 22px; border-radius: 18px; font-size: 14px; cursor: pointer; }
.pd-comment-submit-btn:hover { opacity: .9; transform: translateY(-1px); }

.pd-greet-chip { display: inline-block; padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); color: #ddd; font-size: 13px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.12); }
.pd-greet-chip:hover { background: rgba(255, 183, 77, 0.15); color: #ffb74d; border-color: rgba(255, 183, 77, 0.4); }

/* --- 移动端 --- */
@media (max-width: 640px) {
  .pd-hero-inner { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 18px 26px; gap: 14px; }
  .pd-hero-left { align-items: center; justify-content: center; }
  .pd-hero-photo { width: 150px; }
  .pd-name { font-size: 22px; }
  .pd-hero-head { flex-direction: row; justify-content: center; gap: 8px; flex-wrap: wrap; }
  .pd-core-tags, .pd-stats { justify-content: center; }
  .pd-hero-right-bottom { flex: none; }
  .pd-mini-thumbs { min-height: 80px; }
  .pd-mini-strip { min-height: 66px; }
  .pd-mini-strip img { min-height: 66px; max-height: 72px; min-width: 66px; max-width: 90px; }
  .pd-mini-video { min-height: 66px; width: 70px; }
  .pd-section { margin: 12px; padding: 16px; }
  .pd-action-bar { padding: 16px 12px 4px; }
}

.article-lock-gate {
  max-width: 420px;
  margin: 24px auto 12px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}
.article-lock-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.article-lock-gate h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #222;
}
.article-lock-gate p {
  color: #666;
  margin: 0 0 16px;
  font-size: 14px;
}
.article-lock-error {
  color: #c0392b !important;
}
.article-lock-gate input[type="password"] {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  margin-bottom: 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  color: #1a1a2e;
  background: #fff;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
}
.article-lock-gate input[type="password"]::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}
.article-lock-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: #1e80ff;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.article-lock-btn:hover {
  background: #1666d8;
}

.article-modal.overlay .article-lock-gate,
.article-modal.fullscreen.tab-night .article-lock-gate {
  background: #1a2233;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.article-modal.overlay .article-lock-gate h2,
.article-modal.fullscreen.tab-night .article-lock-gate h2 {
  color: #fff;
}
.article-modal.overlay .article-lock-gate p,
.article-modal.fullscreen.tab-night .article-lock-gate p {
  color: #b0b8c4;
}
.article-modal.overlay .article-lock-gate input[type="password"],
.article-modal.fullscreen.tab-night .article-lock-gate input[type="password"] {
  color: #fff;
  background: #121827;
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.article-modal.overlay .article-lock-gate input[type="password"]::placeholder,
.article-modal.fullscreen.tab-night .article-lock-gate input[type="password"]::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

/* ===== 新标签页显示：夜色 / 亮色（仅 fullscreen） ===== */
body.detail-tab-night {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
  color: #fff;
}
.article-modal.fullscreen.tab-night .modal-content,
.article-modal.fullscreen.tab-night .article-modal-content {
  background: transparent;
  box-shadow: none;
}
.article-modal.fullscreen.tab-night:not(.site-theme) .detail-container {
  border-color: #3a4254;
  background: #121827;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.article-modal.fullscreen.tab-night .article-header-stats .rank-stat-hot,
.article-modal.fullscreen.tab-night .article-header-stats .rank-header-views {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.article-modal.fullscreen.tab-night:not(.site-theme) .article-content blockquote {
  background: rgba(255, 255, 255, 0.04);
  color: #c9d1d9;
}
.article-modal.fullscreen.tab-night .detail-header h1,
.article-modal.fullscreen.tab-night #detailTitle {
  color: #fff;
}
.article-modal.fullscreen.tab-night .article-author-name {
  color: #ddd;
}
.article-modal.fullscreen.tab-night .article-author-meta,
.article-modal.fullscreen.tab-night .comment-info,
.article-modal.fullscreen.tab-night .comment-reply-link,
.article-modal.fullscreen.tab-night .comment-empty,
.article-modal.fullscreen.tab-night .comment-login-tip {
  color: #8a919f;
}
.article-modal.fullscreen.tab-night .article-content,
.article-modal.fullscreen.tab-night .article-content p,
.article-modal.fullscreen.tab-night .article-content li {
  color: #ddd;
}
.article-modal.fullscreen.tab-night .article-content h1,
.article-modal.fullscreen.tab-night .article-content h2,
.article-modal.fullscreen.tab-night .article-content h3,
.article-modal.fullscreen.tab-night .article-content h4 {
  color: #fff;
}
.article-modal.fullscreen.tab-night:not(.site-theme) .article-comments {
  border-top: none;
}
.article-modal.fullscreen.tab-night .article-comments-title,
.article-modal.fullscreen.tab-night .comment-text {
  color: #eee;
}
.article-modal.fullscreen.tab-night .baidu-comment,
.article-modal.fullscreen.tab-night .baidu-reply {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.article-modal.fullscreen.tab-night .comment-name {
  color: #ffb74d;
}
.article-modal.fullscreen.tab-night .vote-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: #aaa;
  background: transparent;
}
.article-modal.fullscreen.tab-night .vote-btn:hover,
.article-modal.fullscreen.tab-night .vote-btn.vote-like.active {
  border-color: #ffb74d;
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.12);
}
.article-modal.fullscreen.tab-night .comment-replies {
  border-left-color: rgba(255, 255, 255, 0.12);
}
.article-modal.fullscreen.tab-night .comment-input,
.article-modal.fullscreen.tab-night .reply-input {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  caret-color: #fff;
  -webkit-text-fill-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.article-modal.fullscreen.tab-night .comment-input::placeholder,
.article-modal.fullscreen.tab-night .reply-input::placeholder {
  color: #777;
  -webkit-text-fill-color: #777;
}
.article-modal.fullscreen.tab-night .comment-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.article-modal.fullscreen.tab-night .emoji-panel {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.article-modal.fullscreen.tab-night:not(.site-theme) .article-like-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.article-modal.fullscreen.tab-night:not(.site-theme) .article-like-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}
.article-modal.fullscreen.tab-night:not(.site-theme) .article-like-btn.active {
  color: #ffd700 !important;
  background: rgba(255, 215, 0, 0.2) !important;
}

#rankDetailModal.fullscreen.tab-white,
#personDetailModal.fullscreen.tab-white {
  background: #f2f3f5;
}
#rankDetailModal.fullscreen.tab-white .modal-content,
#personDetailModal.fullscreen.tab-white .modal-content {
  background: #fff;
  color: #252933;
}
#rankDetailModal.fullscreen.tab-white .modal-header,
#rankDetailModal.fullscreen.tab-white .l3-standalone-header,
#personDetailModal.fullscreen.tab-white .modal-header,
#personDetailModal.fullscreen.tab-white .l3-standalone-header {
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  color: #252933;
}
#rankDetailModal.fullscreen.tab-white .modal-header h2,
#rankDetailModal.fullscreen.tab-white .l3-standalone-title,
#personDetailModal.fullscreen.tab-white .modal-header h2,
#personDetailModal.fullscreen.tab-white .l3-standalone-title {
  color: #1a1a2e;
}
#rankDetailModal.fullscreen.tab-white .l3-standalone-back,
#personDetailModal.fullscreen.tab-white .l3-standalone-back {
  background: #f2f3f5;
  border-color: #e4e6eb;
  color: #4e5969;
}
#rankDetailModal.fullscreen.tab-white .close-btn,
#personDetailModal.fullscreen.tab-white .close-btn {
  color: #86909c;
}
#rankDetailModal .detail-tab-theme-btn,
#personDetailModal .detail-tab-theme-btn {
  display: none;
}
#rankDetailModal.fullscreen .detail-tab-theme-btn,
#personDetailModal.fullscreen .detail-tab-theme-btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  border-radius: 8px;
}
#rankDetailModal.fullscreen.tab-white .detail-tab-theme-btn,
#personDetailModal.fullscreen.tab-white .detail-tab-theme-btn {
  background: #fff;
  color: #e6a817;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}
#rankDetailModal.fullscreen.tab-night .detail-tab-theme-btn,
#personDetailModal.fullscreen.tab-night .detail-tab-theme-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd56a;
}
#rankDetailModal.fullscreen.tab-white .rank-header-views,
#personDetailModal.fullscreen.tab-white .rank-header-views,
#rankDetailModal.fullscreen.tab-white .rank-stat-hot,
#personDetailModal.fullscreen.tab-white .rank-stat-hot {
  color: #4e5969;
  background: #f2f3f5;
}
#rankDetailModal.fullscreen.tab-white .rank-detail-section,
#rankDetailModal.fullscreen.tab-white .l3-section,
#personDetailModal.fullscreen.tab-white .pd-section {
  background: #eef0f3;
  border-color: #e4e6eb;
  color: #252933;
}
#rankDetailModal.fullscreen.tab-white .rank-detail-section-title,
#personDetailModal.fullscreen.tab-white .pd-section-title,
#personDetailModal.fullscreen.tab-white .pd-name,
#personDetailModal.fullscreen.tab-white .pd-inner-self,
#personDetailModal.fullscreen.tab-white .pd-rich,
#personDetailModal.fullscreen.tab-white .comment-text {
  color: #252933;
}
#personDetailModal.fullscreen.tab-white .pd-hero {
  background: linear-gradient(135deg, #fff1f0 0%, #f2f3f5 55%, #fff 100%);
  color: #1a1a2e;
  border-bottom-color: #e4e6eb;
}
#personDetailModal.fullscreen.tab-white .pd-tag {
  background: #fff;
  color: #4e5969;
  border-color: #e4e6eb;
}
#personDetailModal.fullscreen.tab-white .pd-id-badge {
  background: #f2f3f5;
  color: #4e5969;
}
#rankDetailModal.fullscreen.tab-white .comment-input,
#rankDetailModal.fullscreen.tab-white .reply-input,
#personDetailModal.fullscreen.tab-white .comment-input,
#personDetailModal.fullscreen.tab-white .reply-input {
  color: #1a1a2e;
  background: #fff;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
  border: 1px solid #e4e6eb;
}
#rankDetailModal.fullscreen.tab-white .comment-input::placeholder,
#rankDetailModal.fullscreen.tab-white .reply-input::placeholder,
#personDetailModal.fullscreen.tab-white .comment-input::placeholder,
#personDetailModal.fullscreen.tab-white .reply-input::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}
#rankDetailModal.fullscreen.tab-white .l3-section-header {
  border-bottom-color: #e4e6eb;
}
#rankDetailModal.fullscreen.tab-white .l3-section-header h2,
#rankDetailModal.fullscreen.tab-white .ranking-info h3,
#rankDetailModal.fullscreen.tab-white .l3-article-info h3,
#rankDetailModal.fullscreen.tab-white .rank-intro-title,
#rankDetailModal.fullscreen.tab-white .rank-intro-article,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content p,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content li,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content h1,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content h2,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content h3,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content h4,
#rankDetailModal.fullscreen.tab-white .article-comments-title,
#rankDetailModal.fullscreen.tab-white .comment-text,
#rankDetailModal.fullscreen.tab-white .baidu-comment .comment-text {
  color: #1a1a2e;
  text-shadow: none;
}
#rankDetailModal.fullscreen.tab-white .l3-section-count,
#rankDetailModal.fullscreen.tab-white .ranking-info p,
#rankDetailModal.fullscreen.tab-white .rank-intro-empty,
#rankDetailModal.fullscreen.tab-white .rank-intro-meta,
#rankDetailModal.fullscreen.tab-white .comment-empty,
#rankDetailModal.fullscreen.tab-white .comment-info,
#rankDetailModal.fullscreen.tab-white .comment-login-tip,
#rankDetailModal.fullscreen.tab-white .comment-reply-link {
  color: #252933;
}
#rankDetailModal.fullscreen.tab-white .comment-name {
  color: #1d4ed8;
}
#rankDetailModal.fullscreen.tab-white .comment-login-tip a,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content a {
  color: #1e80ff;
}
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content blockquote {
  color: #4e5969;
  background: #f2f3f5;
}
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content pre,
#rankDetailModal.fullscreen.tab-white .rank-intro-article .article-content code {
  color: #1a1a2e;
  background: #f2f3f5;
}
#rankDetailModal.fullscreen.tab-white #joinRankFormWrap label,
#rankDetailModal.fullscreen.tab-white #joinRankFormWrap h3 {
  color: #4e5969 !important;
}
#rankDetailModal.fullscreen.tab-white #joinRankFormWrap input,
#rankDetailModal.fullscreen.tab-white #joinRankFormWrap textarea {
  color: #1a1a2e !important;
  background: #fff !important;
  border-color: #e4e6eb !important;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e !important;
}
#rankDetailModal.fullscreen.tab-white #joinRankFormWrap input::placeholder,
#rankDetailModal.fullscreen.tab-white #joinRankFormWrap textarea::placeholder {
  color: #888 !important;
  -webkit-text-fill-color: #888 !important;
}
#rankDetailModal.fullscreen.tab-white .ranking-item {
  background: #fff !important;
  border: 1px solid #c9cdd4 !important;
  border-radius: 12px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
#rankDetailModal.fullscreen.tab-white .ranking-item:hover {
  background: #fff !important;
  border-color: #adb3bd !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.article-modal.fullscreen.site-theme.tab-white,
.article-modal.fullscreen.site-theme.tab-white.active {
  background: #f2f3f5;
}
body.detail-tab-white:has(.article-modal.fullscreen.site-theme.active) {
  background: #f2f3f5 !important;
  color: #252933;
}
#articleModal.site-theme.fullscreen.tab-white .modal-content,
#articleModal.site-theme.fullscreen.tab-white .article-modal-content {
  background: #fff;
  color: #1a1a2e;
}
#articleModal.site-theme.fullscreen.tab-white .modal-header,
#articleModal.site-theme.fullscreen.tab-white .article-modal-header {
  background: #fff;
  border-bottom: 1px solid #e4e6eb;
  color: #1a1a2e;
}
#articleModal.site-theme.fullscreen.tab-white .detail-container {
  background: #fff;
}
#articleModal.site-theme.fullscreen.tab-white .detail-content,
#articleModal.site-theme.fullscreen.tab-white .article-comments {
  background: #eef0f3;
  border-color: #e4e6eb;
  color: #1a1a2e;
}
#articleModal.site-theme.fullscreen.tab-white .rank-header-title,
#articleModal.site-theme.fullscreen.tab-white .rank-header-title-text,
#articleModal.site-theme.fullscreen.tab-white #detailTitle,
#articleModal.site-theme.fullscreen.tab-white .article-content,
#articleModal.site-theme.fullscreen.tab-white .article-content p,
#articleModal.site-theme.fullscreen.tab-white .article-content li,
#articleModal.site-theme.fullscreen.tab-white .article-content h1,
#articleModal.site-theme.fullscreen.tab-white .article-content h2,
#articleModal.site-theme.fullscreen.tab-white .article-content h3,
#articleModal.site-theme.fullscreen.tab-white .article-content h4,
#articleModal.site-theme.fullscreen.tab-white .article-content span,
#articleModal.site-theme.fullscreen.tab-white .article-content div,
#articleModal.site-theme.fullscreen.tab-white .comment-text,
#articleModal.site-theme.fullscreen.tab-white .baidu-comment .comment-text,
#articleModal.site-theme.fullscreen.tab-white .article-comments-title {
  color: #1a1a2e;
  text-shadow: none;
}
#articleModal.site-theme.fullscreen.tab-white .rank-item-meta-foot,
#articleModal.site-theme.fullscreen.tab-white .comment-empty,
#articleModal.site-theme.fullscreen.tab-white .comment-info,
#articleModal.site-theme.fullscreen.tab-white .comment-login-tip,
#articleModal.site-theme.fullscreen.tab-white .comment-reply-link {
  color: #252933;
  border-top-color: #e4e6eb;
}
#articleModal.site-theme.fullscreen.tab-white .article-content a,
#articleModal.site-theme.fullscreen.tab-white .comment-login-tip a {
  color: #1e80ff;
}
#articleModal.site-theme.fullscreen.tab-white .article-content blockquote {
  color: #4e5969;
  background: #f2f3f5;
}
#articleModal.site-theme.fullscreen.tab-white .article-content pre,
#articleModal.site-theme.fullscreen.tab-white .article-content code {
  color: #1a1a2e;
  background: #f2f3f5;
}
#articleModal.site-theme.fullscreen.tab-white .detail-tab-theme-btn {
  background: #fff;
  color: #e6a817;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}
#articleModal.site-theme.fullscreen.tab-night .detail-tab-theme-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd56a;
}
#articleModal.site-theme.fullscreen.tab-white .rank-header-views,
#articleModal.site-theme.fullscreen.tab-white .rank-stat-hot {
  color: #4e5969;
  background: #f2f3f5;
}
#articleModal.site-theme.fullscreen.tab-white .close-btn {
  color: #86909c;
}
#articleModal.site-theme.fullscreen.tab-white .rank-header-rank-name,
#articleModal.site-theme.fullscreen.tab-white a.rank-header-rank-name {
  color: #1a1a2e;
}
#articleModal.site-theme.fullscreen.tab-white a.rank-header-rank-name:hover {
  color: #000;
}
#articleModal.site-theme.fullscreen.tab-white .comment-input,
#articleModal.site-theme.fullscreen.tab-white .reply-input {
  color: #1a1a2e;
  background: #fff;
  caret-color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
  border: 1px solid #e4e6eb;
}
#articleModal.site-theme.fullscreen.tab-white .comment-input::placeholder,
#articleModal.site-theme.fullscreen.tab-white .reply-input::placeholder {
  color: #888;
  -webkit-text-fill-color: #888;
}

