/* ========== 基础重置与变量 ========== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222234;
  --border-color: #2a2a3c;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #6a6a82;
  --gold-primary: #d4a520;
  --gold-light: #f0c840;
  --gold-dark: #a07818;
  --cyan-primary: #00d4ff;
  --cyan-light: #60e8ff;
  --cyan-dark: #0090b0;
  --danger: #ff4444;
  --success: #44ff88;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow-gold: 0 0 20px rgba(212, 165, 32, 0.15);
  --shadow-glow-cyan: 0 0 16px rgba(0, 212, 255, 0.1);
}

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

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ========== 页面切换 ========== */
.page {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.25s ease-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Header ========== */
.header {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 16px 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: 2px;
}

.header-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  letter-spacing: 4px;
}

.header-with-back {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-with-back .header-title {
  flex: 1;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.back-btn {
  background: transparent;
  color: var(--cyan-primary);
  border: 1px solid var(--cyan-dark);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0;
}

.back-btn:active {
  background: rgba(0, 212, 255, 0.15);
  transform: scale(0.96);
}

/* ========== Container ========== */
.container {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.detail-container {
  padding-bottom: 32px;
}

/* ========== 职业卡片（首页） ========== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-dark));
  opacity: 0;
  transition: opacity 0.25s;
}

.class-card:hover,
.class-card:active {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold), var(--shadow-card);
}

.class-card:hover::before,
.class-card:active::before {
  opacity: 1;
}

/* 首页职业图标（图片版） */
.class-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(212, 165, 32, 0.25);
}

.class-icon-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(212, 165, 32, 0.3);
}

.class-name {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

.class-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ========== BD列表卡片 ========== */
.bd-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.bd-count-badge {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: var(--bg-primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.bd-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.bd-card:hover,
.bd-card:active {
  background: var(--bg-card-hover);
  border-color: var(--cyan-dark);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow-cyan), var(--shadow-card);
}

.bd-card:hover::after,
.bd-card:active::after {
  opacity: 1;
}

.bd-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.bd-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  flex: 1;
  line-height: 1.4;
}

.bd-card-version {
  background: var(--cyan-dark);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.bd-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.bd-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  color: var(--cyan-light);
  font-weight: 500;
}

.bd-card-intro {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== BD详情页 ========== */
.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

/* 详情页模块标题（无图标纯文字） */
.detail-section-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* BD标题区 */
.detail-hero {
  text-align: center;
  padding: 24px 18px !important;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%) !important;
  border-color: var(--gold-dark) !important;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 165, 32, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-name {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag-class {
  background: rgba(212, 165, 32, 0.15);
  color: var(--gold-primary);
  border: 1px solid var(--gold-dark);
}

.tag-version {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan-primary);
  border: 1px solid var(--cyan-dark);
}

.hero-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
  position: relative;
  white-space: pre-line;
}

/* 内容区块 */
.detail-content {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.85;
  white-space: pre-line;
  word-break: break-all;
}

.detail-content strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* 装备价格区域 */
.equipment-pricing-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pricing-type {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
}

.price-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan-primary);
  cursor: pointer;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.2s;
  white-space: nowrap;
}

.price-value:hover,
.price-value:active {
  background: rgba(0, 212, 255, 0.18);
  box-shadow: var(--shadow-glow-cyan);
}

.price-loading {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 4px 10px;
}

.price-error {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 400;
  padding: 4px 10px;
}

/* 限流状态 - 橙色警告 */
.price-rate-limit {
  color: #f0a030;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(240, 160, 48, 0.08);
  border-radius: 6px;
  cursor: help;
  animation: pulse-warn 2s ease-in-out infinite;
}

@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 无数据状态 - 灰色柔和 */
.price-no-data {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 4px 10px;
}

/* 参考价 - 金色柔和（区别于精确价的青色） */
.price-reference {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-primary);
  cursor: help;
  padding: 4px 10px;
  background: rgba(212, 165, 32, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(212, 165, 32, 0.2);
  transition: all 0.2s;
  white-space: nowrap;
}

.price-reference:hover,
.price-reference:active {
  background: rgba(212, 165, 32, 0.18);
  box-shadow: var(--shadow-glow-gold);
}

/* 缓存过期（软过期）- 淡淡的虚线边框提示 */
.price-stale {
  opacity: 0.8;
  border-style: dashed !important;
}
.price-stale.price-value {
  color: var(--cyan-dark);
  border-color: rgba(0, 144, 176, 0.25);
}
.price-stale.price-reference {
  color: var(--gold-dark);
  border-color: rgba(160, 120, 24, 0.25);
}

.pricing-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  word-break: break-all;
}

/* 价格区域统一声明 */
.pricing-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  padding: 4px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 6px;
}

.stat-tag {
  display: inline-block;
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 2px;
  border: 1px solid var(--border-color);
}

/* 天赋图 */
.talent-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.talent-img-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.talent-img-wrapper img {
  width: 100%;
  display: block;
  max-width: 100%;
  height: auto;
}

.talent-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 天赋图点击放大 */
.talent-img-wrapper img {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.talent-img-wrapper img:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* 图片预览遮罩层 */
.image-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.image-overlay.show { opacity: 1; visibility: visible; }

.image-preview-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.image-preview-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.image-preview-close:hover,
.image-preview-close:active {
  background: rgba(255, 255, 255, 0.3);
}

/* 其他补充 */
.notes-list {
  list-style: none;
}

.note-item {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.note-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.8rem;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 0.95rem;
}

/* ========== 加载状态 ========== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== 响应式适配 ========== */
@media (max-width: 360px) {
  html {
    font-size: 13px;
  }

  .class-grid {
    gap: 10px;
  }

  .class-card {
    padding: 20px 12px;
  }

  .container {
    padding: 12px;
  }
}

@media (min-width: 481px) {
  .class-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-container {
    max-width: 540px;
  }
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== 热门BD板块（参考图简洁风格）========== */
.hot-bds-section {
  margin-top: 36px;
  padding: 20px 18px 22px;
  /* 模块整体浅浅的背景，让板块成为一个明确区域 */
  background: linear-gradient(180deg,
    rgba(26, 22, 18, 0.5) 0%,
    rgba(18, 18, 26, 0.3) 100%);
  border: 1px solid rgba(255, 140, 66, 0.08);
  border-radius: 16px;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

/* 模块顶部的装饰横线 */
.hot-bds-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 140, 66, 0.4) 50%,
    transparent 100%);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 头部 ---- */
.hot-bds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 2px;
}

.hot-bds-title {
  display: flex;
  align-items: center;
}

.hot-bds-title-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff8c42 0%, #ffd43b 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(255, 140, 66, 0.4));
}

.hot-bds-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(212, 165, 32, 0.15), rgba(212, 165, 32, 0.05));
  border: 1px solid rgba(212, 165, 32, 0.35);
  color: var(--gold-primary);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.hot-bds-refresh:hover,
.hot-bds-refresh:active {
  background: linear-gradient(135deg, rgba(212, 165, 32, 0.25), rgba(212, 165, 32, 0.1));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 165, 32, 0.3);
  color: var(--gold-light);
}
.hot-bds-refresh .refresh-icon {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.5s;
}
.hot-bds-refresh:hover .refresh-icon {
  transform: rotate(360deg);
}

.hot-bds-loading {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- 卡片列表 ---- */
.hot-bds-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.18s;
}
.hot-bds-grid.hot-bds-refreshing {
  opacity: 0.15;
}

/* ========== 单张卡片（独立矩形模块）========== */
.hot-bd-card {
  position: relative;
  padding: 16px 18px 16px 16px;

  /* 横向布局：左侧头像 + 右侧内容 */
  display: flex;
  align-items: stretch;
  gap: 14px;

  /* 更亮的卡片背景 —— 与深色页面背景形成强烈对比 */
  background: linear-gradient(145deg, #232338 0%, #1a1a2e 100%);

  /* 清晰可见的边框线 */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  /* 多层阴影营造浮起/立体感 */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 左侧职业色条 —— 模块识别标志 */
.hot-bd-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--class-color, var(--gold-primary));
  border-radius: 4px 0 0 4px;
  opacity: 0.9;
}

.hot-bd-card:hover,
.hot-bd-card:active {
  background: linear-gradient(145deg, #282842 0%, #1e1e34 100%);
  border-color: var(--class-color, var(--gold-primary));
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--class-glow, rgba(212, 165, 32, 0.15)),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---- 左侧：职业头像 ---- */
.hot-bd-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
  border: 2px solid var(--class-color, var(--gold-primary));
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 12px var(--class-glow, rgba(212, 165, 32, 0.25));
  align-self: center;
}

.hot-bd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hot-bd-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--class-color, var(--gold-primary)), rgba(0,0,0,0.3));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ---- 右侧：内容区 ---- */
.hot-bd-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---- 第1行：名称 + 版本 ---- */
.hot-bd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.hot-bd-name {
  flex: 1;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.4;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.hot-bd-version {
  flex-shrink: 0;
  background: var(--cyan-dark);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ---- 第2行：升华 · 职业 · 星星 ---- */
.hot-bd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.hot-bd-meta-label {
  color: var(--text-muted);
}
.hot-bd-meta-value {
  color: var(--cyan-light);
  font-weight: 500;
}
.hot-bd-dot {
  color: var(--text-muted);
  opacity: 0.5;
}
.hot-bd-class-inline {
  color: var(--class-color);
  font-weight: 600;
}
.hot-bd-stars {
  margin-left: auto;
  font-size: 1.1rem;
  letter-spacing: 2px;
  line-height: 1;
  cursor: help;
}

.star {
  display: inline-block;
}
.star-full {
  color: #ffd43b;
  font-size: 1.15rem;
  text-shadow: 0 0 8px rgba(255, 212, 59, 0.7), 0 0 2px rgba(255, 200, 0, 0.9);
}
.star-empty {
  color: rgba(255, 212, 59, 0.18);
  font-size: 1.15rem;
}
.star-half {
  position: relative;
  color: rgba(255, 212, 59, 0.18);
  font-size: 1.15rem;
}
.star-half-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #ffd43b;
  font-size: 1.15rem;
  text-shadow: 0 0 8px rgba(255, 212, 59, 0.7), 0 0 2px rgba(255, 200, 0, 0.9);
}

/* ---- 第3行：简介 ---- */
.hot-bd-intro {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.88;
}

/* ---- 第4行：标签 + 价格 ---- */
.hot-bd-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}

.hot-bd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.hot-bd-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: 0.3px;
}
.hot-bd-tag-cyan {
  color: var(--cyan-primary);
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.25);
}
.hot-bd-tag-purple {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.25);
}
.hot-bd-tag-gold {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}
.hot-bd-tag-green {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.25);
}
.hot-bd-tag-default {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* 价格 */
.hot-bd-price {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg,
    rgba(212, 165, 32, 0.1),
    rgba(212, 165, 32, 0.03));
  border: 1px solid rgba(212, 165, 32, 0.25);
  border-radius: 8px;
}
.hot-bd-price-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: 'SF Mono', Menlo, monospace;
  line-height: 1;
  letter-spacing: -0.3px;
}
.hot-bd-price-unit {
  font-size: 0.68rem;
  color: var(--gold-primary);
  font-weight: 600;
}
.hot-bd-price-cny {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-style: italic;
  margin-left: 4px;
  opacity: 0.75;
}

/* ---- 响应式 ---- */
@media (max-width: 480px) {
  .hot-bds-section {
    padding: 16px 12px 18px;
    margin-top: 28px;
  }
  .hot-bd-card {
    padding: 14px 14px 14px 12px;
    gap: 12px;
  }
  .hot-bd-avatar {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border-width: 1.5px;
  }
  .hot-bd-name {
    font-size: 0.95rem;
  }
  .hot-bd-intro {
    font-size: 0.78rem;
  }
  .hot-bd-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hot-bd-price {
    align-self: flex-end;
  }
}

/* 极小屏（iPhone SE等）头像更小 */
@media (max-width: 360px) {
  .hot-bd-avatar {
    width: 48px;
    height: 48px;
  }
  .hot-bd-card {
    padding: 12px 12px 12px 10px;
    gap: 10px;
  }
}


/* ============================================================ */
/* ============== v2 高级感重构（配色收敛 + 立绘背景） ============ */
/* ============================================================ */

/* 覆盖全局变量：收敛配色 —— 深黑 + 暗金为主，青色弱化为次级 */
:root {
  --bg-primary: #0b0b10;
  --bg-secondary: #13131c;
  --bg-card: #181823;
  --bg-card-hover: #1f1f2d;
  --border-color: #25252f;
  --border-subtle: rgba(212, 165, 32, 0.08);

  --text-primary: #ece8dc;
  --text-secondary: #9e9a8e;
  --text-muted: #6a665c;

  /* 主色：暗金，收敛饱和度 */
  --gold-primary: #c9a24a;
  --gold-light: #e8c96a;
  --gold-dark: #8a6f2e;

  /* 青色降级为辅助色（用于次要信息） */
  --cyan-primary: #7cb5c9;
  --cyan-light: #a5d4e0;
  --cyan-dark: #4a7887;

  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 32px rgba(201, 162, 74, 0.12);
}

/* body 背景：细微渐变 */
body {
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 74, 0.04) 0%, transparent 45%),
    var(--bg-primary);
  background-attachment: fixed;
}

/* ============ 顶部 Tab 导航 ============ */
.top-tabs {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  gap: 0;
  padding: 10px 16px 0;
  background: linear-gradient(180deg, rgba(11, 11, 16, 0.98) 0%, rgba(11, 11, 16, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.top-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-family: inherit;
}

.top-tab-icon {
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.top-tab.active {
  color: var(--gold-light);
}

.top-tab.active .top-tab-icon {
  opacity: 1;
}

.top-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transition: transform 0.3s ease;
}

.top-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

.top-tab-badge {
  background: var(--gold-primary);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* 子页面的 header 不再 sticky（让 top-tabs 独占顶部） */
.header {
  position: static !important;
  backdrop-filter: none;
}

/* ============ 卡片立绘背景（通用） ============ */
.bd-card,
.hot-bd-card {
  position: relative;
  overflow: hidden;
}

.card-portrait-bg {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  opacity: 0.18;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 45%, transparent 95%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 45%, transparent 95%);
  filter: saturate(1.1) contrast(1.05);
  z-index: 0;
  transition: opacity 0.3s, transform 0.4s;
}

.bd-card:hover .card-portrait-bg,
.hot-bd-card:hover .card-portrait-bg {
  opacity: 0.26;
  transform: translateY(-50%) translateX(-6px);
}

/* 卡片内容统一在立绘之上 */
.bd-card > *:not(.card-portrait-bg),
.hot-bd-card > *:not(.card-portrait-bg) {
  position: relative;
  z-index: 1;
}

/* 卡片在有立绘的情况下调整内容留白 */
.bd-card {
  padding-right: 80px;
}

/* ============ BD 列表卡片重构 ============ */
.bd-card {
  background:
    linear-gradient(135deg, rgba(24, 24, 35, 0.95) 0%, rgba(19, 19, 28, 0.85) 100%);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--class-color, var(--gold-dark));
  transition: all 0.3s ease;
}

.bd-card:hover,
.bd-card:active {
  background: linear-gradient(135deg, rgba(31, 31, 45, 0.95) 0%, rgba(24, 24, 35, 0.9) 100%);
  border-color: var(--class-color, var(--gold-primary));
  transform: translateY(-2px) translateX(0);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px var(--class-glow, rgba(201, 162, 74, 0.1));
}

.bd-card-name {
  color: var(--gold-light);
}

.bd-card-version {
  background: rgba(201, 162, 74, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
}

.meta-value {
  color: var(--text-primary);
}

/* ============ 点赞/收藏 按钮 ============ */
.social-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.social-btn:hover {
  border-color: var(--gold-dark);
  background: rgba(201, 162, 74, 0.06);
  color: var(--text-secondary);
}

.social-btn:active {
  transform: scale(0.92);
}

.social-btn .sb-icon {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s;
}

.social-btn .sb-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  text-align: left;
}

/* 点赞激活态：暖红 */
.social-btn.liked {
  background: rgba(232, 97, 97, 0.12);
  border-color: rgba(232, 97, 97, 0.4);
  color: #e86161;
}
.social-btn.liked .sb-icon {
  animation: popHeart 0.35s ease;
}
@keyframes popHeart {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* 收藏激活态：金色 */
.social-btn.favorited {
  background: rgba(201, 162, 74, 0.14);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}
.social-btn.favorited .sb-icon {
  animation: popStar 0.4s ease;
}
@keyframes popStar {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.35) rotate(-18deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 阻止社交按钮的点击事件冒泡到卡片 */
.social-actions {
  position: relative;
  z-index: 2;
}

/* ============ 热门BD 卡片微调（配合新配色） ============ */
.hot-bd-card {
  background: linear-gradient(135deg, rgba(24, 24, 35, 0.92) 0%, rgba(19, 19, 28, 0.82) 100%);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--class-color, var(--gold-dark));
}

.hot-bd-name {
  color: var(--gold-light) !important;
  background: none !important;
  -webkit-text-fill-color: var(--gold-light) !important;
}

/* 热门卡片内部已有 hot-bd-avatar（左侧小头像），
   这里额外加一个右侧立绘背景，与 .bd-card 统一处理 */
.hot-bd-card .card-portrait-bg {
  width: 180px;
  height: 180px;
  right: -30px;
  opacity: 0.17;
}

/* ============ 头部 header 收敛金色亮度 ============ */
.header-title {
  background: linear-gradient(135deg, var(--gold-light) 10%, var(--gold-primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 3px;
}

/* 职业卡片统一色调 */
.class-card {
  background: linear-gradient(160deg, rgba(24, 24, 35, 0.95) 0%, rgba(19, 19, 28, 0.9) 100%);
  border: 1px solid var(--border-color);
}

.class-card:hover,
.class-card:active {
  background: linear-gradient(160deg, rgba(31, 31, 45, 0.98) 0%, rgba(24, 24, 35, 0.93) 100%);
  border-color: var(--gold-dark);
  box-shadow: 0 0 20px rgba(201, 162, 74, 0.1), var(--shadow-card);
}

/* ============ 我的收藏 - 页面 ============ */
.fav-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.fav-empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 16px;
}
.fav-empty-text {
  font-size: 0.95rem;
  line-height: 1.8;
}
.fav-empty-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

.fav-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  padding: 0 4px;
}

.fav-section-title .fst-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1.5px;
}

.fav-section-title .fst-label::before {
  content: '';
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
  border-radius: 2px;
}

.fav-section-more {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.fav-section-more:hover {
  border-color: var(--gold-dark);
  color: var(--gold-light);
}

/* 收藏页 - 职业网格 */
.fav-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.fav-class-item {
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(160deg, rgba(24, 24, 35, 0.95), rgba(19, 19, 28, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s;
  padding: 10px 6px;
  position: relative;
  overflow: hidden;
}

.fav-class-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--class-glow, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s;
}

.fav-class-item:hover {
  border-color: var(--class-color, var(--gold-dark));
  transform: translateY(-2px);
}
.fav-class-item:hover::before {
  opacity: 1;
}

.fav-class-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.fav-class-item-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.fav-class-item-name {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.fav-class-item-count {
  font-size: 0.68rem;
  color: var(--class-color, var(--gold-primary));
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.fav-class-item-count.zero {
  color: var(--text-muted);
}

/* hero-name 高级化 */
.hero-name {
  background: linear-gradient(135deg, var(--gold-light) 10%, var(--gold-primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 1px;
}

.detail-hero {
  border-color: var(--gold-dark) !important;
}

/* 详情页顶部大立绘背景 */
.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-hero-portrait {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, transparent 85%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  object-fit: cover;
}

.detail-hero > *:not(.detail-hero-portrait):not(::before) {
  position: relative;
  z-index: 1;
}

/* 响应式：移动端卡片立绘更小 */
@media (max-width: 480px) {
  .bd-card {
    padding-right: 70px;
  }
  .card-portrait-bg {
    width: 130px;
    height: 130px;
    opacity: 0.16;
  }
  .hot-bd-card .card-portrait-bg {
    width: 140px;
    height: 140px;
    opacity: 0.14;
  }
  .fav-class-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .fav-class-item-img {
    width: 40px;
    height: 40px;
  }
  .top-tab {
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 11px 6px;
  }
}


/* ============================================================ */
/* ============ v3 莫兰迪黑金风 + 移动端优先 重构 ================ */
/* ============================================================ */

/* ---------- 核心色板：黑金 + 银灰，全面收敛 ---------- */
:root {
  /* 淡金字色阶（卡片内文字统一用这套） */
  --gold-text-primary: #e8d4a3;     /* 淡金主色：职业/升华/简介等 */
  --gold-text-soft:    #c9b587;     /* 柔和淡金：次级信息 */
  --gold-text-faded:   #8a7a55;     /* 最淡金：label类 */

  /* 银色系（用于次要标签、玩法标签） */
  --silver-primary: #b8b3a8;
  --silver-soft:    #9a958a;
  --silver-dark:    #5a564d;

  /* 暗金加深版（用于预算档标签） */
  --gold-deep:      #b8943a;
  --gold-amber:     #d4a84a;
}

/* ============ 卡片内字体：全部淡金（除标题外） ============ */

/* —— BD 列表卡片 —— */
.bd-card-name {
  color: var(--gold-light) !important;
}

.bd-card-meta,
.bd-card-meta-item,
.bd-card-intro {
  color: var(--gold-text-primary) !important;
}

.bd-card .meta-label {
  color: var(--gold-text-faded) !important;
}

.bd-card .meta-value {
  color: var(--gold-text-primary) !important;
  font-weight: 500;
}

.bd-card-version {
  background: rgba(184, 148, 58, 0.12) !important;
  color: var(--gold-text-primary) !important;
  border: 1px solid rgba(184, 148, 58, 0.35) !important;
}

/* —— 热门BD卡片 —— */
.hot-bd-meta,
.hot-bd-intro,
.hot-bd-meta-label,
.hot-bd-meta-value,
.hot-bd-class-inline,
.hot-bd-dot {
  color: var(--gold-text-primary) !important;
}

.hot-bd-meta-label {
  color: var(--gold-text-faded) !important;
}

.hot-bd-version {
  background: rgba(184, 148, 58, 0.12) !important;
  color: var(--gold-text-primary) !important;
  border: 1px solid rgba(184, 148, 58, 0.35) !important;
}

/* 星星保持金色，但统一色调 */
.star-full, .star-half-inner {
  color: var(--gold-amber) !important;
}
.star-empty {
  color: rgba(255, 255, 255, 0.12) !important;
}

/* —— 详情页内容 —— */
.hero-intro,
.detail-content {
  color: var(--gold-text-primary) !important;
}

.detail-content strong {
  color: var(--gold-light) !important;
  font-weight: 600;
}

.tag-class {
  background: rgba(201, 162, 74, 0.1) !important;
  color: var(--gold-text-primary) !important;
  border: 1px solid rgba(201, 162, 74, 0.35) !important;
}

.tag-version {
  background: rgba(184, 148, 58, 0.08) !important;
  color: var(--gold-text-soft) !important;
  border: 1px solid rgba(184, 148, 58, 0.25) !important;
}

/* —— 首页职业卡 —— */
.class-name {
  color: var(--gold-text-primary) !important;
}

.class-count {
  color: var(--gold-text-faded) !important;
}

/* ============ BD推荐标签 —— 双档质感 ============ */
/* 档位1：预算类（gold）—— 暗金立体质感 */
.hot-bd-tag-gold {
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.25) 0%, rgba(139, 111, 46, 0.15) 100%) !important;
  color: var(--gold-amber) !important;
  border: 1px solid rgba(201, 162, 74, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(232, 212, 163, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* 档位2：玩法类（cyan/purple/green/default）—— 统一银灰质感 */
.hot-bd-tag-cyan,
.hot-bd-tag-purple,
.hot-bd-tag-green,
.hot-bd-tag-default {
  background: linear-gradient(135deg, rgba(184, 179, 168, 0.1) 0%, rgba(90, 86, 77, 0.1) 100%) !important;
  color: var(--silver-primary) !important;
  border: 1px solid rgba(184, 179, 168, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(232, 228, 218, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
}

/* ============ 首页 Header 副标题 ============ */
.header-subtitle {
  color: var(--gold-text-faded) !important;
}

/* ============ 详情页 section-title 淡金 ============ */
.section-title {
  color: var(--gold-light) !important;
}

/* ============ 收藏页 文字 ============ */
.fav-class-item-name {
  color: var(--gold-text-primary) !important;
}
.fav-class-item-count {
  color: var(--gold-amber) !important;
}
.fav-class-item-count.zero {
  color: var(--gold-text-faded) !important;
}

.fav-class-item:hover {
  border-color: rgba(201, 162, 74, 0.35) !important;
}

.fav-empty-text {
  color: var(--gold-text-soft) !important;
}
.fav-empty-sub {
  color: var(--gold-text-faded) !important;
}

/* ============ 点赞/收藏按钮 ============ */
.social-btn {
  color: var(--gold-text-faded) !important;
  border-color: rgba(201, 162, 74, 0.15) !important;
  background: rgba(201, 162, 74, 0.03) !important;
}
.social-btn:hover {
  border-color: rgba(201, 162, 74, 0.35) !important;
  color: var(--gold-text-primary) !important;
}
/* 点赞激活：保持暖红 */
.social-btn.liked {
  background: rgba(214, 102, 102, 0.12) !important;
  border-color: rgba(214, 102, 102, 0.45) !important;
  color: #d66666 !important;
}
/* 收藏激活：金色 */
.social-btn.favorited {
  background: rgba(201, 162, 74, 0.16) !important;
  border-color: var(--gold-primary) !important;
  color: var(--gold-text-primary) !important;
}

/* ============ 职业卡片 hover 统一淡金 ============ */
.class-card:hover,
.class-card:active {
  border-color: rgba(201, 162, 74, 0.4) !important;
  box-shadow: 0 0 24px rgba(201, 162, 74, 0.08), var(--shadow-card) !important;
}

/* 返回按钮也用淡金 */
.back-btn {
  color: var(--gold-text-primary) !important;
  border-color: rgba(201, 162, 74, 0.3) !important;
}
.back-btn:active {
  background: rgba(201, 162, 74, 0.1) !important;
}

/* 顶部Tab激活色 */
.top-tab.active {
  color: var(--gold-light) !important;
}
.top-tab-badge {
  background: var(--gold-deep) !important;
}

/* ============================================================ */
/* ============ 移动端优先 · 响应式强化 ======================== */
/* ============================================================ */

* {
  -webkit-tap-highlight-color: transparent;
}

/* 手机 ≤480px */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .top-tabs {
    padding: 8px 8px 0;
  }
  .top-tab {
    padding: 11px 8px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    min-height: 44px;
  }
  .top-tab-icon {
    font-size: 0.95rem;
  }

  .header {
    padding: 12px 14px 12px;
  }
  .header-title {
    font-size: 1.35rem;
    letter-spacing: 2px;
  }
  .header-subtitle {
    font-size: 0.78rem;
    letter-spacing: 3px;
  }

  .container {
    padding: 12px 12px 28px;
  }

  .class-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .class-card {
    padding: 20px 10px;
    border-radius: 14px;
  }
  .class-icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }
  .class-name {
    font-size: 0.95rem;
  }
  .class-count {
    font-size: 0.72rem;
  }

  .bd-card {
    padding: 14px 14px 12px;
    padding-right: 66px;
    border-radius: 12px;
  }
  .bd-card-name {
    font-size: 0.98rem;
  }
  .bd-card-meta {
    font-size: 0.75rem;
  }
  .bd-card-intro {
    font-size: 0.78rem;
    margin-top: 8px;
  }
  .card-portrait-bg {
    width: 120px;
    height: 120px;
    right: -15px;
    opacity: 0.16;
  }

  .hot-bd-card {
    padding: 13px 14px !important;
    gap: 11px !important;
  }
  .hot-bd-avatar {
    width: 52px !important;
    height: 52px !important;
  }
  .hot-bd-name {
    font-size: 0.95rem !important;
  }
  .hot-bd-meta {
    font-size: 0.74rem !important;
  }
  .hot-bd-intro {
    font-size: 0.76rem !important;
  }
  .hot-bd-tag {
    font-size: 0.65rem !important;
    padding: 2.5px 7px !important;
  }
  .hot-bd-price-value {
    font-size: 1rem !important;
  }
  .hot-bd-card .card-portrait-bg {
    width: 130px;
    height: 130px;
    right: -25px;
    opacity: 0.13;
  }

  .social-btn {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .social-btn .sb-icon {
    font-size: 1rem;
  }

  .detail-section {
    padding: 14px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .detail-hero {
    padding: 20px 16px !important;
  }
  .hero-name {
    font-size: 1.2rem;
  }
  .hero-intro {
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .detail-content {
    font-size: 0.83rem;
    line-height: 1.75;
  }
  .detail-hero-portrait {
    width: 180px;
    height: 180px;
    right: -30px;
    opacity: 0.13;
  }

  .fav-class-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .fav-class-item {
    padding: 10px 4px;
    border-radius: 10px;
  }
  .fav-class-item-img {
    width: 40px;
    height: 40px;
  }
  .fav-class-item-name {
    font-size: 0.78rem;
  }
  .fav-class-item-count {
    font-size: 0.66rem;
  }
}

/* 超小屏 ≤360px */
@media (max-width: 360px) {
  html { font-size: 13px; }
  .top-tab {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
  }
  .container {
    padding: 10px 10px 24px;
  }
  .bd-card {
    padding: 12px;
    padding-right: 56px;
  }
  .card-portrait-bg {
    width: 100px;
    height: 100px;
  }
  .fav-class-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .fav-class-item-img {
    width: 36px;
    height: 36px;
  }
}

/* 平板及以上：居中内容 */
@media (min-width: 768px) {
  .container { max-width: 560px; }
  .top-tabs { max-width: 560px; margin: 0 auto; }
}


/* ============================================================ */
/* ============ v4 全白字体 · 靠深浅粗细大小分级 ================ */
/* ============================================================ */

/* ---------- 白色字阶 ---------- */
:root {
  --w-100: #ffffff;           /* 最亮：主标题 */
  --w-90:  rgba(255,255,255,0.92); /* 强调：BD名、section标题 */
  --w-75:  rgba(255,255,255,0.78); /* 正文主要信息 */
  --w-60:  rgba(255,255,255,0.62); /* 次要信息/简介 */
  --w-45:  rgba(255,255,255,0.45); /* label、辅助说明 */
  --w-30:  rgba(255,255,255,0.30); /* 极弱：占位、分割 */
}

/* ---------- 主标题：纯白 + 字重 + 细字间距 ---------- */
.header-title {
  background: none !important;
  -webkit-text-fill-color: var(--w-100) !important;
  color: var(--w-100) !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.08);
}

/* 子页 header 标题 */
.header-with-back .header-title {
  font-weight: 600 !important;
  letter-spacing: 2px !important;
}

/* 副标题：很弱 */
.header-subtitle {
  color: var(--w-45) !important;
  font-weight: 400 !important;
  letter-spacing: 5px !important;
}

/* 顶部 Tab */
.top-tab {
  color: var(--w-45) !important;
  font-weight: 500 !important;
}
.top-tab.active {
  color: var(--w-100) !important;
  font-weight: 700 !important;
}
.top-tab-badge {
  background: var(--w-90) !important;
  color: #0b0b10 !important;
  font-weight: 700 !important;
}

/* 返回按钮 */
.back-btn {
  color: var(--w-75) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  font-weight: 500 !important;
}
.back-btn:active {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- 职业卡片 ---------- */
.class-name {
  color: var(--w-90) !important;
  font-weight: 600 !important;
}
.class-count {
  color: var(--w-45) !important;
  font-weight: 400 !important;
}

/* ---------- BD 列表卡片 ---------- */
.bd-card-name {
  color: var(--w-100) !important;
  font-weight: 700 !important;
  font-size: 1.02rem;
  letter-spacing: 0.3px;
}
.bd-card-meta,
.bd-card-meta-item {
  color: var(--w-75) !important;
  font-weight: 400 !important;
}
.bd-card .meta-label {
  color: var(--w-45) !important;
  font-weight: 400 !important;
}
.bd-card .meta-value {
  color: var(--w-90) !important;
  font-weight: 500 !important;
}
.bd-card-intro {
  color: var(--w-60) !important;
  font-weight: 400 !important;
}
.bd-card-version {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--w-90) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  font-weight: 600 !important;
}

/* ---------- 热门 BD 卡片 ---------- */
.hot-bd-name {
  color: var(--w-100) !important;
  -webkit-text-fill-color: var(--w-100) !important;
  background: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}
.hot-bd-meta,
.hot-bd-meta-value,
.hot-bd-class-inline {
  color: var(--w-75) !important;
  font-weight: 400 !important;
}
.hot-bd-meta-label {
  color: var(--w-45) !important;
}
.hot-bd-dot {
  color: var(--w-30) !important;
}
.hot-bd-intro {
  color: var(--w-60) !important;
  font-weight: 400 !important;
}
.hot-bd-version {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--w-90) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  font-weight: 600 !important;
}
.hot-bd-avatar-fallback {
  color: var(--w-90) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05)) !important;
}

/* 价格区：数字比较重要，用亮白+粗 */
.hot-bd-price-value {
  color: var(--w-100) !important;
  font-weight: 700 !important;
}
.hot-bd-price-unit {
  color: var(--w-75) !important;
  font-weight: 500 !important;
}
.hot-bd-price-cny {
  color: var(--w-45) !important;
  font-weight: 400 !important;
}

/* 星级 */
.star-full, .star-half-inner {
  color: var(--w-90) !important;
}
.star-empty {
  color: var(--w-30) !important;
}

/* ---------- 详情页 ---------- */
.hero-name {
  background: none !important;
  -webkit-text-fill-color: var(--w-100) !important;
  color: var(--w-100) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}
.hero-intro {
  color: var(--w-75) !important;
  font-weight: 400 !important;
}
.section-title {
  color: var(--w-100) !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px;
}
.detail-content {
  color: var(--w-75) !important;
  font-weight: 400 !important;
}
.detail-content strong {
  color: var(--w-100) !important;
  font-weight: 600 !important;
}

.tag-class {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--w-90) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 500 !important;
}
.tag-version {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--w-75) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-weight: 500 !important;
}

/* ---------- BD 推荐标签：用「粗细+不透明度」分主次 ---------- */
/* 预算档（最重要）—— 最亮白 + 粗 + 描边 */
.hot-bd-tag-gold {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--w-100) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.4) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-shadow: none !important;
}
/* 玩法档 —— 次亮 + 中等 */
.hot-bd-tag-cyan,
.hot-bd-tag-purple,
.hot-bd-tag-green,
.hot-bd-tag-default {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--w-60) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
}

/* ---------- 刷新按钮 ---------- */
.hot-bds-refresh {
  color: var(--w-60) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: transparent !important;
}
.hot-bds-refresh:hover,
.hot-bds-refresh:active {
  color: var(--w-90) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.hot-bds-title-text,
.bd-list-header span {
  color: var(--w-60) !important;
}
.bd-count-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--w-100) !important;
  font-weight: 700 !important;
}

/* ---------- 社交按钮 ---------- */
.social-btn {
  color: var(--w-45) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  font-weight: 500 !important;
}
.social-btn:hover {
  color: var(--w-75) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
/* 点赞激活：暖红 */
.social-btn.liked {
  background: rgba(230, 110, 110, 0.14) !important;
  border-color: rgba(230, 110, 110, 0.5) !important;
  color: #ee8585 !important;
}
/* 收藏激活：亮白+强描边（用字重和亮度分级） */
.social-btn.favorited {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: var(--w-100) !important;
  font-weight: 700 !important;
}

/* ---------- 收藏页 ---------- */
.fav-section-title .fst-label {
  color: var(--w-100) !important;
  font-weight: 600 !important;
}
.fav-section-title .fst-label::before {
  background: var(--w-75) !important;
}
.fav-section-more {
  color: var(--w-60) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.fav-section-more:hover {
  color: var(--w-100) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.fav-class-item-name {
  color: var(--w-90) !important;
  font-weight: 500 !important;
}
.fav-class-item-count {
  color: var(--w-75) !important;
  font-weight: 600 !important;
}
.fav-class-item-count.zero {
  color: var(--w-30) !important;
  font-weight: 400 !important;
}

.fav-empty {
  color: var(--w-45) !important;
}
.fav-empty-icon {
  color: var(--w-30) !important;
}
.fav-empty-text {
  color: var(--w-75) !important;
  font-weight: 500 !important;
}
.fav-empty-sub {
  color: var(--w-45) !important;
}

/* ---------- 价格查询相关文字 ---------- */
.pricing-type {
  color: var(--w-90) !important;
  font-weight: 500 !important;
}
.stat-tag {
  color: var(--w-60) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.pricing-disclaimer {
  color: var(--w-30) !important;
}
.price-value {
  color: var(--w-100) !important;
  font-weight: 700 !important;
}
.price-reference {
  color: var(--w-75) !important;
  font-weight: 500 !important;
}
.price-loading {
  color: var(--w-45) !important;
}
.price-error,
.price-no-data,
.price-rate-limit {
  color: var(--w-45) !important;
  font-weight: 400 !important;
}

/* 其他补充/note */
.note-item {
  color: var(--w-75) !important;
}

/* 天赋图空占位 */
.talent-empty {
  color: var(--w-30) !important;
}

/* ---------- 卡片边框：去除莫兰迪职业色点缀，统一白色微描边 ---------- */
/* 职业色变量虽然还在，但改为极淡白，保持统一 */
.bd-card,
.hot-bd-card {
  border-left-color: rgba(255, 255, 255, 0.08) !important;
}
.bd-card:hover,
.bd-card:active,
.hot-bd-card:hover,
.hot-bd-card:active {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.04) !important;
}
.class-card:hover,
.class-card:active {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.04), var(--shadow-card) !important;
}

/* 立绘背景：去饱和 */
.card-portrait-bg,
.detail-hero-portrait {
  filter: saturate(0.3) brightness(1.1) !important;
}

/* 详情页 hero 边框 */
.detail-hero {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.detail-hero::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%) !important;
}


/* ============================================================ */
/* ============ v5 微调：价格徽章 + 星星去发光 + 标题降饱和 ==== */
/* ============================================================ */

/* ---- 星星：去除所有发光效果（保留纯色） ---- */
.star-full,
.star-half-inner {
  color: var(--w-75) !important;
  text-shadow: none !important;
  filter: none !important;
}
.star-empty,
.star-half {
  color: rgba(255, 255, 255, 0.18) !important;
  text-shadow: none !important;
  filter: none !important;
}

/* ---- 热门推荐标题：降饱和，去彩色渐变 ---- */
.hot-bds-title-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--w-75) !important;
  background-clip: initial !important;
  color: var(--w-75) !important;
  filter: none !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: 2.5px !important;
  font-size: 1.15rem !important;
}

/* ---- BD 卡片价格徽章 ---- */
.bd-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.bd-price-divine {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.bd-price-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--w-100);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.bd-price-unit {
  font-size: 0.72rem;
  color: var(--w-75);
  font-weight: 500;
}

.bd-price-sep {
  color: var(--w-30);
  margin: 0 2px;
}

.bd-price-cny {
  font-size: 0.78rem;
  color: var(--w-60);
  font-weight: 400;
  font-style: italic;
}

/* 移动端更紧凑 */
@media (max-width: 480px) {
  .bd-price-badge {
    padding: 5px 9px;
    font-size: 0.75rem;
    margin-top: 8px;
  }
  .bd-price-val {
    font-size: 0.95rem;
  }
  .hot-bds-title-text {
    font-size: 1.05rem !important;
    letter-spacing: 2px !important;
  }
}


/* ============================================================ */
/* ============ v6 卡片底图铺满（全覆盖） ====================== */
/* ============================================================ */

/* 底图铺满整个卡片，左侧用 mask 渐隐保证文字可读性 */
.card-portrait-bg {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  opacity: 0.22 !important;
  object-fit: cover !important;
  object-position: right center !important;
  /* 左侧强渐隐，右侧完整显示 → 文字区 + 立绘区兼得 */
  -webkit-mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.85) 30%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.15) 75%,
    transparent 100%) !important;
  mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.85) 30%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.15) 75%,
    transparent 100%) !important;
  filter: saturate(0.5) brightness(1.05) !important;
}

/* hover 时底图轻微亮起 */
.bd-card:hover .card-portrait-bg,
.hot-bd-card:hover .card-portrait-bg {
  opacity: 0.3 !important;
  transform: none !important;
}

/* 热门卡同样覆盖 */
.hot-bd-card .card-portrait-bg {
  opacity: 0.2 !important;
  width: 100% !important;
  height: 100% !important;
  right: 0 !important;
  top: 0 !important;
}

/* 详情页 hero 区底图也铺满 */
.detail-hero-portrait {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  opacity: 0.18 !important;
  object-fit: cover !important;
  object-position: right center !important;
  -webkit-mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.7) 40%,
    rgba(0,0,0,0.25) 70%,
    transparent 100%) !important;
  mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.7) 40%,
    rgba(0,0,0,0.25) 70%,
    transparent 100%) !important;
  filter: saturate(0.5) brightness(1.05) !important;
}

/* 既然底图铺满，卡片就不需要 padding-right 留空 */
.bd-card {
  padding-right: 16px !important;
}
@media (max-width: 480px) {
  .bd-card {
    padding-right: 14px !important;
  }
}
@media (max-width: 360px) {
  .bd-card {
    padding-right: 12px !important;
  }
}



/* ============================================================ */
/* ============ v7 装备图小方块（左侧 36×36）+ 升华高清图 ====== */
/* ============================================================ */

/* 装备价格条调整：让图片+名称+价格共一行 */
.equipment-pricing-item .pricing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* 不换行 */
}

/* 装备小方块 */
.equip-thumb {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

/* 兜底图（类别代表图）—— 加点辨识：稍稍降低不透明度 */
.equip-thumb-fallback {
  opacity: 0.55;
  filter: saturate(0.7);
}

/* 完全无图占位（极少出现） */
.equip-thumb-empty {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.04), rgba(0,0,0,0.2));
  border: 1px dashed rgba(255,255,255,0.1);
}
.equip-thumb-empty::after {
  content: '?';
  display: block;
  text-align: center;
  line-height: 30px;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
}

/* 名称占据剩余空间 */
.equipment-pricing-item .pricing-type {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hover 时图片轻微浮起 */
.equipment-pricing-item:hover .equip-thumb {
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* 移动端缩小 */
@media (max-width: 480px) {
  .equip-thumb {
    width: 32px;
    height: 32px;
    border-radius: 5px;
  }
  .equipment-pricing-item .pricing-header {
    gap: 8px;
  }
}

/* ============ 升华背景图美化（高清远程图 → 让 mask 更柔和） ============ */
.card-portrait-bg {
  /* 高清升华bg是横版长图，调一下 object-position 让人物居中右 */
  object-position: center right !important;
  filter: saturate(0.7) brightness(0.95) !important;
}

.detail-hero-portrait {
  /* 详情页大图，亮度可以稍高，更醒目 */
  filter: saturate(0.85) brightness(1.0) !important;
  opacity: 0.28 !important;
}


/* ============================================================
 * BD 顾问 (Advisor) 样式 - v20260511-0019
 * 设计原则：暗色为主，金色仅做点缀，大面积用渐变营造氛围
 * ============================================================ */

/* 首页顶部入口按钮 —— 暗色卡片风，与整站协调 */
.advisor-entry{
  display:flex;align-items:center;gap:14px;width:100%;
  margin:14px auto 18px;padding:14px 18px;
  background:linear-gradient(135deg,#1a1a26 0%,#1f1c2c 50%,#1a1a26 100%);
  border:1px solid var(--border-color);border-radius:var(--radius-lg);
  color:#e8e3d6;cursor:pointer;
  box-shadow:var(--shadow-card);
  transition:all .25s ease;
  text-align:left;position:relative;overflow:hidden;
}
.advisor-entry::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent 0%,rgba(245,245,245,.4) 50%,transparent 100%);
}
.advisor-entry:hover{
  background:linear-gradient(135deg,#1f1f2e 0%,#252238 50%,#1f1f2e 100%);
  border-color:rgba(245,245,245,.45);
  transform:translateY(-1px);
}
.advisor-entry-icon{
  font-size:18px;line-height:1;flex-shrink:0;
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(245,245,245,.1),rgba(120,80,180,.08));
  border:1px solid rgba(245,245,245,.22);
  border-radius:10px;color:#d4a520;
  font-family:Georgia,serif;
}
.advisor-entry-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;}
.advisor-entry-title{font-size:15px;font-weight:600;color:#f5f5f5;letter-spacing:.4px;}
.advisor-entry-sub{font-size:12px;color:#9a9080;line-height:1.4;}
.advisor-entry-arrow{font-size:22px;color:#5a5040;flex-shrink:0;font-family:Georgia,serif;line-height:1;}

/* Modal 容器 */
.advisor-modal{
  display:none;position:fixed;inset:0;z-index:9999;
  background:rgba(6,5,12,.82);backdrop-filter:blur(6px);
  align-items:center;justify-content:center;padding:20px;
  animation:advFade .25s ease;
}
.advisor-modal.show{display:flex;}
@keyframes advFade{from{opacity:0}to{opacity:1}}

.advisor-panel{
  width:100%;max-width:540px;max-height:90vh;
  background:
    radial-gradient(ellipse at top,rgba(120,80,180,.12) 0%,transparent 50%),
    radial-gradient(ellipse at bottom right,rgba(245,245,245,.06) 0%,transparent 60%),
    linear-gradient(180deg,#15131e 0%,#0f0d18 100%);
  border:1px solid #2a2538;
  border-radius:18px;
  display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px rgba(245,245,245,.06);
  animation:advSlide .28s cubic-bezier(.2,.8,.2,1);
  position:relative;
}
.advisor-panel::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent 0%,rgba(245,245,245,.5) 30%,rgba(180,140,255,.4) 70%,transparent 100%);
  pointer-events:none;
}
@keyframes advSlide{from{transform:translateY(24px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}

.advisor-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,.04);
  position:relative;
}
.advisor-title{
  color:#f5f5f5;font-size:16px;font-weight:600;letter-spacing:1px;
}
.advisor-close{
  background:transparent;border:none;color:#6a6070;font-size:24px;
  cursor:pointer;width:30px;height:30px;line-height:1;
  display:flex;align-items:center;justify-content:center;border-radius:8px;
  transition:all .18s ease;
}
.advisor-close:hover{background:rgba(255,255,255,.05);color:#d4a520;}

.advisor-body{padding:20px 22px;overflow-y:auto;color:#cfc6b3;}
.advisor-body::-webkit-scrollbar{width:6px;}
.advisor-body::-webkit-scrollbar-thumb{background:rgba(245,245,245,.15);border-radius:3px;}

/* 表单字段 */
.adv-field{margin-bottom:18px;}
.adv-field-label{
  font-size:12px;font-weight:500;color:#8a8090;margin-bottom:9px;
  display:flex;align-items:center;gap:6px;
  letter-spacing:.5px;text-transform:none;
}
.adv-field-label .req{color:#c47a4a;font-size:11px;}
.adv-field-hint{font-size:11px;color:#5a5060;font-weight:400;margin-left:4px;}

.adv-options{display:flex;flex-wrap:wrap;gap:7px;}
.adv-chip{
  padding:7px 14px;
  border:1px solid #2a2538;border-radius:18px;
  background:rgba(255,255,255,.015);
  color:#9a9080;font-size:13px;cursor:pointer;
  transition:all .18s ease;user-select:none;
  letter-spacing:.2px;
}
.adv-chip:hover{
  border-color:rgba(180,140,255,.35);
  background:rgba(180,140,255,.06);
  color:#d8d0e0;
}
.adv-chip.active{
  background:linear-gradient(135deg,rgba(245,245,245,.14) 0%,rgba(180,140,255,.1) 100%);
  border-color:rgba(245,245,245,.5);
  color:#f5f5f5;
  font-weight:500;
  box-shadow:inset 0 0 0 1px rgba(245,245,245,.1);
}

/* 自定义下拉 */
.adv-dropdown{position:relative;}
.adv-dropdown-trigger{
  width:100%;padding:11px 14px;
  background:rgba(255,255,255,.02);
  border:1px solid #2a2538;border-radius:10px;
  color:#cfc6b3;font-size:13px;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;
  transition:all .18s ease;text-align:left;
}
.adv-dropdown-trigger:hover{border-color:rgba(180,140,255,.4);}
.adv-dropdown.open .adv-dropdown-trigger{
  border-color:rgba(245,245,245,.5);
  background:rgba(255,255,255,.03);
}
.adv-dropdown-value.placeholder{color:#6a6070;}
.adv-dropdown-chev{
  width:8px;height:8px;border-right:1.5px solid #8a8090;border-bottom:1.5px solid #8a8090;
  transform:rotate(45deg);transition:transform .2s ease;margin-top:-3px;
}
.adv-dropdown.open .adv-dropdown-chev{transform:rotate(-135deg);margin-top:3px;}

.adv-dropdown-menu{
  display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);
  background:linear-gradient(180deg,#1a1726 0%,#15131e 100%);
  border:1px solid #2a2538;border-radius:10px;
  max-height:280px;overflow-y:auto;z-index:10;
  box-shadow:0 12px 32px rgba(0,0,0,.5),0 0 0 1px rgba(245,245,245,.06);
  padding:6px;
}
.adv-dropdown.open .adv-dropdown-menu{display:block;animation:advDdShow .15s ease;}
@keyframes advDdShow{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

.adv-dropdown-menu::-webkit-scrollbar{width:6px;}
.adv-dropdown-menu::-webkit-scrollbar-thumb{background:rgba(245,245,245,.15);border-radius:3px;}

.adv-dd-group{margin:4px 0;}
.adv-dd-item{
  padding:9px 12px;font-size:13px;color:#a89e88;cursor:pointer;
  border-radius:7px;display:flex;align-items:center;gap:8px;
  transition:all .15s ease;position:relative;
}
.adv-dd-item:hover{background:rgba(180,140,255,.08);color:#f5f5f5;}
.adv-dd-item.selected{
  background:linear-gradient(90deg,rgba(245,245,245,.12),rgba(180,140,255,.06));
  color:#f5f5f5;
}
.adv-dd-class{font-weight:600;color:#d4d0c0;font-size:13px;}
.adv-dd-class .adv-dd-tag{
  margin-left:auto;font-size:11px;font-weight:400;color:#6a6070;
  padding:2px 7px;border:1px solid #2a2538;border-radius:9px;
}
.adv-dd-asc{padding-left:24px;font-size:12.5px;color:#9a9080;}
.adv-dd-dot{
  width:5px;height:5px;border-radius:50%;
  background:linear-gradient(135deg,#d4a520,#b48cff);flex-shrink:0;
}
.adv-dd-line{
  width:14px;height:1px;background:#3a3548;flex-shrink:0;
  position:relative;
}
.adv-dd-line::before{
  content:'';position:absolute;left:-1px;top:-4px;width:1px;height:8px;background:#3a3548;
}

/* 提交/重置按钮 */
.adv-actions{
  display:flex;gap:10px;margin-top:14px;padding-top:16px;
  border-top:1px solid rgba(255,255,255,.04);
}
.adv-btn{
  flex:1;padding:12px;border:none;border-radius:10px;
  font-size:14px;font-weight:600;cursor:pointer;
  transition:all .2s ease;letter-spacing:.5px;
}
.adv-btn-primary{
  background:linear-gradient(135deg,#3a2d5c 0%,#5a4080 50%,#6b3d70 100%);
  color:#f5f5f5;
  border:1px solid rgba(245,245,245,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 14px rgba(90,64,128,.3);
  position:relative;overflow:hidden;
}
.adv-btn-primary::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(245,245,245,.18),transparent);
  transform:translateX(-100%);transition:transform .5s ease;
}
.adv-btn-primary:hover{
  filter:brightness(1.12);border-color:rgba(245,245,245,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 6px 18px rgba(90,64,128,.45);
}
.adv-btn-primary:hover::before{transform:translateX(100%);}
.adv-btn-primary:disabled{opacity:.5;cursor:not-allowed;}
.adv-btn-secondary{
  background:rgba(255,255,255,.02);color:#9a9080;
  border:1px solid #2a2538;
}
.adv-btn-secondary:hover{
  border-color:rgba(180,140,255,.4);color:#d8d0e0;
  background:rgba(180,140,255,.05);
}

/* 结果区 */
.adv-result-summary{
  background:linear-gradient(135deg,rgba(245,245,245,.05) 0%,rgba(180,140,255,.06) 100%);
  border:1px solid rgba(245,245,245,.18);border-radius:10px;
  padding:12px 14px;margin-bottom:14px;font-size:12.5px;color:#a89e88;
  line-height:1.55;
}
.adv-result-summary b{color:#f5f5f5;font-weight:600;}

.adv-card{
  background:linear-gradient(135deg,rgba(255,255,255,.02) 0%,rgba(180,140,255,.03) 100%);
  border:1px solid #2a2538;border-radius:12px;
  padding:13px 14px;margin-bottom:10px;cursor:pointer;
  transition:all .2s ease;position:relative;overflow:hidden;
}
.adv-card:hover{
  border-color:rgba(180,140,255,.45);
  background:linear-gradient(135deg,rgba(255,255,255,.03) 0%,rgba(180,140,255,.06) 100%);
  transform:translateY(-1px);
}
.adv-card.tier-0{
  border-color:rgba(245,245,245,.4);
  background:linear-gradient(135deg,rgba(245,245,245,.06) 0%,rgba(180,140,255,.05) 100%);
}
.adv-card.tier-0::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(245,245,245,.6),transparent);
}

.adv-card-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px;}
.adv-tier-badge{
  flex-shrink:0;font-size:11px;font-weight:600;padding:3px 9px;border-radius:10px;
  letter-spacing:.6px;border:1px solid;
}
.adv-tier-badge.tier-0{
  background:rgba(245,245,245,.12);color:#d4a520;
  border-color:rgba(245,245,245,.4);
}
.adv-tier-badge.tier-1{
  background:rgba(180,140,255,.08);color:#b48cff;
  border-color:rgba(180,140,255,.3);
}
.adv-tier-badge.tier-2{
  background:rgba(255,255,255,.03);color:#7a7060;
  border-color:#2a2538;
}
.adv-card-title{flex:1;font-size:14.5px;font-weight:600;color:#f5f5f5;line-height:1.4;}
.adv-match{
  flex-shrink:0;font-size:12px;color:#d4a520;font-weight:600;
  padding:2px 8px;background:rgba(245,245,245,.08);border-radius:6px;
  border:1px solid rgba(245,245,245,.2);
}

.adv-card-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  font-size:12px;color:#9a9080;margin-bottom:8px;
}
.adv-meta-item{display:inline-flex;align-items:center;}
.adv-meta-price{color:#d4a520;font-weight:600;}
.adv-meta-sep{
  width:3px;height:3px;border-radius:50%;
  background:#3a3548;flex-shrink:0;
}
.adv-meta-stars{margin-left:auto;color:#d4a520;font-size:11px;letter-spacing:1px;}

.adv-card-reasons{font-size:12px;line-height:1.7;}
.adv-card-reasons .reason{
  display:inline-block;
  background:linear-gradient(135deg,rgba(245,245,245,.06) 0%,rgba(180,140,255,.08) 100%);
  border:1px solid rgba(180,140,255,.2);border-radius:5px;
  padding:2px 8px;margin:2px 4px 2px 0;color:#b8ad95;
}

.adv-loading{text-align:center;padding:48px 20px;color:#7a7060;font-size:13px;}
.adv-loading::before{
  content:"";display:block;width:28px;height:28px;
  border:2px solid #2a2538;
  border-top-color:#d4a520;border-right-color:rgba(180,140,255,.5);
  border-radius:50%;
  animation:advSpin .9s linear infinite;margin:0 auto 12px;
}
@keyframes advSpin{to{transform:rotate(360deg)}}

.adv-empty{text-align:center;padding:30px 20px;color:#7a7060;font-size:13px;}

/* 移动端适配 */
@media (max-width:480px){
  .advisor-panel{max-width:100%;max-height:95vh;border-radius:16px 16px 0 0;}
  .advisor-modal{padding:0;align-items:flex-end;}
  .advisor-body{padding:18px;}
  .advisor-entry{padding:12px 14px;}
  .advisor-entry-title{font-size:14.5px;}
  .advisor-entry-sub{font-size:11px;}
  .advisor-entry-icon{width:36px;height:36px;font-size:16px;}
}

