/* 佳乐の风扇基地 - 12CM 风扇测评数据库 */
/* 纯静态网站，双击 index.html 即可打开 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --bg-primary: #F0F1F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FC;
  --bg-input: #EAECEF;
  --border: rgba(0,0,0,0.10);
  --border-hover: rgba(0,0,0,0.18);
  --text-primary: #1A1D27;
  --text-secondary: #4A4E6A;
  --text-muted: #8890AA;
  --accent-blue: #2563EB;
  --accent-green: #059669;
  --accent-red: #DC2626;
  --accent-orange: #D97706;
  --accent-purple: #7C3AED;
  --gold: #F59E0B;
  --silver: #94A3B8;
  --bronze: #C27030;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: #60A5FA; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,241,245,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; position: relative;
}
.navbar-inner > .navbar-brand { position: relative; z-index: 1; }
.navbar-inner > .navbar-links {
  position: absolute; left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px; z-index: 1;
}
.navbar-inner > .navbar-search { position: relative; z-index: 1; width: 190px; }
.navbar-inner > .nav-hamburger { position: relative; z-index: 1; display: none; }
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.navbar-brand svg { color: var(--accent-blue); }
.navbar-logo {
  width: 32px; height: 32px; border-radius: 8px; object-fit: contain;
  flex-shrink: 0;
}
.navbar-brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.navbar-brand-name {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.3px;
}
.navbar-brand-author {
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.navbar-links { display: flex; gap: 24px; }
.navbar-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--text-primary); border-bottom-color: var(--accent-blue);
}
.navbar-search {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px 6px 32px;
  color: var(--text-primary); font-size: 13px; width: 190px;
  height: 34px; box-sizing: border-box;
  outline: none; transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555870' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' stroke='%23555870' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 9px center;
}
.navbar-search:focus { border-color: var(--accent-blue); }

/* ── Main Container ── */
.main-container { max-width: 1280px; margin: 0 auto; padding: 24px; }

/* ── Page Title ── */
.page-title {
  font-size: 28px; font-weight: 700; margin-bottom: 6px;
  color: var(--text-primary);
}
.page-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* ── Filter Bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 16px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.filter-bar label { color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.filter-bar select, .filter-bar input[type="range"] {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px; color: var(--text-primary);
  font-size: 13px; outline: none;
}
.filter-bar select:focus { border-color: var(--accent-blue); }
.filter-bar input[type="range"] {
  -webkit-appearance: none; width: 120px; height: 4px;
  background: var(--text-muted); border-radius: 2px; border: none; padding: 0;
}
.filter-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent-blue); cursor: pointer;
}
.bearing-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bearing-tag {
  padding: 4px 12px; border-radius: 20px; font-size: 12px;
  border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.bearing-tag.active {
  background: var(--accent-blue); color: #fff; border-color: var(--accent-blue);
}
.bearing-tag:hover { border-color: var(--accent-blue); }
.price-display { color: var(--accent-blue); font-size: 13px; font-weight: 600; min-width: 80px; }

/* ── 表格外包装：与 filter-bar 内容对齐 ── */
.fan-table-wrap {
  padding: 0;
  overflow-x: auto;
}

/* ── Fan List Table ── */
.fan-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 6px; }
.fan-table th {
  text-align: left; padding: 8px 14px; color: var(--text-secondary);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fan-table td {
  padding: 14px; background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.fan-table tr:hover td { background: var(--bg-card-hover); }
.fan-table td:first-child { border-left: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
.fan-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }

/* 内嵌转速 - 桌面端隐藏（有独立列），移动端显示 */
.fan-rpm { display: none; }
.m-right-stack { display: none; }

/* Rank Badge */
.rank-badge {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: var(--bg-input); color: var(--text-secondary);
}
.rank-badge.gold { background: linear-gradient(135deg, #FFD700, #F59E0B); color: #1a1d27; }
.rank-badge.silver { background: linear-gradient(135deg, #C0C0C0, #94A3B8); color: #1a1d27; }
.rank-badge.bronze { background: linear-gradient(135deg, #CD7F32, #D97706); color: #1a1d27; }

/* Fan Name Cell */
.fan-cell > a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.fan-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: var(--bg-input); border: 1px solid var(--border); flex-shrink: 0; }
.fan-info { min-width: 0; }
.fan-name { font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.fan-brand { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Rating Stars */
.rating-stars { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--accent-orange); font-size: 13px; letter-spacing: 1px; }
.rating-num { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

/* Price */
.fan-price { font-weight: 600; color: var(--accent-green); }
.fan-price-source { font-size: 11px; color: var(--text-muted); }

/* Spec Value */
.spec-value { font-weight: 600; font-size: 15px; }
.spec-value-main { color: var(--accent-blue); }
.spec-unit { font-size: 11px; color: var(--text-secondary); margin-left: 2px; }
.spec-tested {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.spec-official {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Action Buttons */
.action-btn {
  padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; display: inline-flex;
  align-items: center; gap: 4px; background: transparent;
}
.action-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.action-btn.compare-active {
  background: rgba(59,130,246,0.15); border-color: var(--accent-blue); color: var(--accent-blue);
}
.action-btn + .action-btn { margin-left: 6px; }

/* ── Compare Float Bar ── */
.compare-float-bar {
  position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 24px;
  display: flex; align-items: center; gap: 12px; z-index: 200;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
  transition: bottom 0.3s ease;
}
.compare-float-bar.visible { bottom: 20px; }
.compare-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border-radius: 6px; padding: 6px 12px;
}
.compare-chip-name { font-size: 12px; font-weight: 500; }
.compare-chip-remove {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: rgba(239,68,68,0.2); color: var(--accent-red);
  cursor: pointer; font-size: 11px; display: flex; align-items: center;
  justify-content: center; transition: background 0.2s;
}
.compare-chip-remove:hover { background: rgba(239,68,68,0.4); }
.btn-compare {
  padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-compare.primary { background: var(--accent-blue); color: #fff; }
.btn-compare.primary:hover { background: #2563EB; }
.btn-compare.primary:disabled { background: var(--text-muted); cursor: not-allowed; }
.btn-clear { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-clear:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* ── Detail Page ── */
.detail-header {
  display: flex; gap: 32px; padding: 32px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px;
}
.detail-image-placeholder {
  width: 280px; height: 280px; max-width: 100%; background: var(--bg-input);
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text-muted);
  flex-shrink: 0;
}
.detail-image-placeholder svg { margin-bottom: 8px; }
.detail-info { flex: 1; display: flex; gap: 20px; align-items: center; }
.detail-info-main { flex: 1; min-width: 0; }
.detail-radar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px; width: 216px; height: 216px;
  margin-right: 18px;
}
.detail-model { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.detail-brand { font-size: 16px; color: var(--text-secondary); margin-bottom: 16px; }
.detail-specs-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.detail-spec {
  padding: 12px 20px; background: var(--bg-input); border-radius: var(--radius);
  border: 1px solid var(--border); min-width: 120px;
}
.detail-spec-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.detail-spec-value { font-size: 20px; font-weight: 700; }
.detail-spec-unit { font-size: 12px; color: var(--text-secondary); }
.detail-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-detail {
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-detail.primary { background: var(--accent-blue); color: #fff; }
.btn-detail.primary:hover { background: #2563EB; }
.btn-detail.outline {
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
}
.btn-detail.outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
/* Bilibili评测视频按钮 — 蓝白小电视风格 */
.btn-detail.bilibili-btn {
  background: linear-gradient(135deg, #00A1D6, #1EAAE8);
  color: #fff !important; border: none !important;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
  animation: biliPulse 3s ease-in-out infinite;
}
.btn-detail.bilibili-btn:hover {
  background: linear-gradient(135deg, #0BB4EA, #00A1D6);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,161,214,0.35);
}
.bili-tv-icon {
  display: inline-block; flex-shrink: 0; vertical-align: middle;
  animation: biliTvWiggle 1.2s ease-in-out infinite;
}
@keyframes biliPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,161,214,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(0,161,214,0); }
}
@keyframes biliTvWiggle {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-2px); }
  40% { transform: translateY(0); }
}

/* ── Detail Content Layout ── */
.detail-layout { display: flex; gap: 28px; align-items: flex-start; }
.detail-sidebar {
  width: 178px; flex-shrink: 0;
  position: sticky; top: 84px;
  align-self: flex-start;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-link {
  display: block; padding: 9px 14px; border-radius: 7px;
  font-size: 13.5px; color: var(--text-secondary); transition: all 0.2s;
  border-left: 3px solid transparent; cursor: pointer; line-height: 1.4;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(59,130,246,0.08); color: var(--text-primary);
  border-left-color: var(--accent-blue); font-weight: 600;
}

.detail-content { flex: 1; min-width: 0; }

/* ── Section ── */
.data-section {
  margin-bottom: 32px; padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.section-title {
  font-size: 22px; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ── Review Section (佳乐评语) ── */
.review-section {
  margin-bottom: 32px; padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.review-comment {
  font-size: 15px; line-height: 1.8; color: var(--text-primary);
  padding: 20px; background: var(--bg-input); border-radius: var(--radius);
  border: 1px solid var(--border); white-space: pre-wrap;
}

/* ── Text Data Item ── */
.spec-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
}
.text-data-item {
  padding: 16px 20px; background: var(--bg-input); border-radius: var(--radius);
  border: 1px solid var(--border);
  flex: 0 1 auto;
}
.text-data-value { font-size: 28px; font-weight: 700; white-space: nowrap; }
.text-data-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.text-data-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.text-data-help {
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted);
  color: var(--bg-input); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: help; position: relative;
}
.text-data-help:hover::after {
  content: attr(data-tip); position: absolute; bottom: 120%; left: 50%;
  transform: translateX(-50%); background: var(--text-primary); color: #fff;
  padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: 400;
  white-space: nowrap; z-index: 10;
}
.text-data-value { font-size: 28px; font-weight: 700; }
.text-data-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.text-data-empty { color: var(--text-muted); font-size: 14px; font-style: italic; }

/* Tested Data Item (佳乐实测高亮) */
.text-data-tested {
  border-color: rgba(59,130,246,0.3);
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.04));
  position: relative;
}
.tested-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.text-data-value-tested {
  color: var(--accent-blue);
}

/* ── Chart Canvas ── */
.chart-container {
  width: 100%; background: var(--bg-input);
  border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 10px; position: relative;
  overflow: hidden;
}
.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}
.chart-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text-muted); font-size: 14px;
}
.chart-label {
  font-size: 16px; color: var(--text-primary); text-align: center; margin-bottom: 10px;
  font-weight: 600;
}
.chart-tooltip {
  position: absolute; background: rgba(255,255,255,0.95); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; font-size: 12px; pointer-events: none;
  z-index: 10; display: none; white-space: nowrap;
  box-shadow: var(--shadow);

/* ── GIF Media ── */
.gif-container {
  width: 100%; max-width: 100%;
  border-radius: 8px; border: 1px solid #D0D5E0;
  position: relative; overflow: hidden; margin-bottom: 16px;
  background: var(--bg-input);
}
.gif-container img,
.gif-container video {
  width: 100%; height: auto;
  display: block; object-fit: contain;
  max-width: 100% !important;
}
.gif-placeholder { color: var(--text-muted); font-size: 14px; }
.gif-play-btn {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 14px; transition: background 0.2s;
}
.gif-play-btn:hover { background: rgba(0,0,0,0.8); }
.gif-caption {
  font-size: 16px; color: var(--text-primary); text-align: center;
  font-weight: 600; margin-top: 8px; margin-bottom: 16px;
}

/* ── Audio Player ── */
/* ═══ 声音试听面板（Sound Listening Panel）═══ */
.sound-listening-panel {
  margin-top: 16px; border-radius: 14px; overflow: hidden;
  border: 1px solid #D0D5E0; background: #F7F8FC;
}
.slp-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 10px; background: linear-gradient(135deg, #EFF6FF, #EDE9FE);
  border-bottom: 1px solid rgba(37,99,235,0.08);
}
.slp-title-text {
  font-size: 15px; font-weight: 700; color: #1E3A5F;
  letter-spacing: 0.3px;
}
.slp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 16px 6px;
}

/* ── 试听按钮 ── */
.slp-btn-wrap { position: relative; }
.slp-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; border-radius: 11px; border: 1.5px solid transparent;
  background: #fff; cursor: pointer; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.slp-btn:hover:not(:disabled) {
  border-color: rgba(37,99,235,0.35); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}
.slp-btn-empty {
  opacity: 0.55; cursor: not-allowed !important;
  background: #f1f2f6;
}
.slp-btn-empty:hover { transform: none !important; box-shadow: none !important; }

/* 播放态 */
.slp-btn-playing {
  border-color: #2563EB !important; background: linear-gradient(135deg,#EFF6FF,#EEF2FF) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1), 0 4px 16px rgba(37,99,235,0.18) !important;
  animation: slpPulseGlow 2s ease-in-out infinite;
}
@keyframes slpPulseGlow {
  0%,100%{box-shadow: 0 0 0 3px rgba(37,99,235,0.1),0 4px 16px rgba(37,99,235,0.18)}
  50%{box-shadow: 0 0 0 5px rgba(37,99,235,0.06),0 4px 24px rgba(37,99,235,0.25)}
}
.slp-btn-paused {
  border-color: rgba(37,99,235,0.3); background: #f8faff;
}

/* 图标区域 */
.slp-btn-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #6366F1);
  color: #fff; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  transition: all 0.3s ease;
}
.slp-btn-playing .slp-btn-icon {
  animation: slpIconSpin 0.9s ease-in-out infinite;
  background: linear-gradient(135deg, #1D4ED8, #4F46E5);
  box-shadow: 0 2px 16px rgba(37,99,235,0.55), 0 0 24px rgba(79,70,229,0.3);
}
@keyframes slpIconSpin {
  0%,100%{transform: scale(1) rotate(0deg)}
  15%{transform: scale(1.18) rotate(-6deg)}
  30%{transform: scale(1.12) rotate(4deg)}
  45%{transform: scale(1.15) rotate(-3deg)}
  60%{transform: scale(1.10) rotate(2deg)}
  75%{transform: scale(1.06) rotate(-1deg)}
}
/* 文字信息 */
.slp-btn-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1; min-width: 0; }
.slp-btn-label {
  font-size: 13px; font-weight: 700; color: #1E293B;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 180px;
}
.slp-btn-desc {
  font-size: 11.5px; color: #64748B; font-weight: 500;
}
/* 缺失标记 */
.slp-badge-missing {
  font-size: 10px; color: #EF4444; background: #FEF2F2;
  padding: 2px 8px; border-radius: 6px; font-weight: 600;
  white-space: nowrap;
}
/* 波动动画点 */
.slp-wave-dots {
  display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; margin-left: auto;
}
.slp-btn-playing .slp-wave-dots {
  opacity: 1 !important;
}
.slp-wave-dots i {
  width: 4px; border-radius: 2px;
  background: #2563EB; display: block;
  animation: slpDotWave 0.7s ease-in-out infinite;
}
.slp-wave-dots i:nth-child(1){animation-delay:0s;height:14px;background:#2563EB}
.slp-wave-dots i:nth-child(2){animation-delay:-0.12s;height:22px;background:#6366F1}
.slp-wave-dots i:nth-child(3){animation-delay:-0.24s;height:28px;background:#8B5CF6}
.slp-wave-dots i:nth-child(4){animation-delay:-0.36s;height:20px;background:#A78BFA}
.slp-wave-dots i:nth-child(5){animation-delay:-0.48s;height:12px;background:#C4B5FD}
.slp-btn:not(.slp-btn-playing) .slp-wave-dots i { animation: none !important; height: 4px !important; opacity: 0.25 !important; }
@keyframes slpDotWave{
  0%,100%{transform:scaleY(0.35)} 50%{transform:scaleY(1)}
}

/* ── 波形可视化区 ── */
.slp-waveform { display: none; padding: 0 16px 16px; }
.slp-waveform-inner {
  background: #fff; border-radius: 10px; border: 1px solid #E2E5EB;
  padding: 12px; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
}
.slp-waveform canvas { width: 100%; height: 120px; display: block; }
.slp-nowplaying {
  text-align: center; font-size: 12px; color: #2563EB;
  font-weight: 600; margin-top: 8px; min-height: 18px;
}

/* ── Image Gallery ── */
.image-gallery { margin-bottom: 10px; width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; }
.image-gallery > * { max-width: 100%; box-sizing: border-box; }
.image-gallery img { max-width: 100%; height: auto; display: block; }
.image-main {
  width: 100%; max-width: 100%; background: var(--bg-input);
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: zoom-in; min-width: 0; box-sizing: border-box;
}
.image-main img { width: 100%; max-width: 100%; height: auto; object-fit: contain; min-width: 0; }
.image-grid {
  display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 100%; min-width: 0;
}
.image-grid-item {
  flex: 1 1 200px; max-width: calc(50% - 4px); min-width: 0;
  background: var(--bg-input); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  cursor: zoom-in; display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.image-grid-item.image-grid-main {
  flex: 2 1 280px; max-width: 55%;
}
.image-grid-item img {
  width: 100%; height: auto; max-width: 100%; object-fit: contain; display: block;
}
.image-empty {
  background: var(--bg-input); border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); font-size: 14px;
  padding: 20px;
}

/* ── 佳乐说（板块评语）── */
.jiale-say {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid #E2E5EB;
}
.jiale-say-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; border: 2px solid var(--accent-blue);
  display: block;
}
.jiale-bubble {
  position: relative; background: #EFF6FF; border-radius: 14px;
  padding: 14px 18px; max-width: calc(100% - 62px); color: #1E3A5F;
  font-size: 14px; line-height: 1.8;
  border: 1px solid rgba(37,99,235,0.15);
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  display: block !important;
}
.jiale-bubble::before {
  content: ''; position: absolute; left: -9px; top: 16px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 9px solid #EFF6FF;
  display: block;
}
.jiale-bubble::after {
  content: ''; position: absolute; left: -10px; top: 15px;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 9px solid rgba(37,99,235,0.15);
  display: block;
}
.jiale-say-label { font-weight: 700; color: #2563EB; margin-right: 4px; font-size: 14px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 1000; display: none;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* ── 3D Model Viewer Placeholder ── */
.model-viewer-wrap {
  width: 100%; background: var(--bg-input);
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--text-muted); margin-bottom: 10px;
  overflow: hidden; height: 400px;
}
.model-viewer-wrap svg { margin-bottom: 8px; }
.model-viewer-wrap canvas { display: block; width: 100% !important; }

/* ── Compare Page ── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: center;
  vertical-align: middle;
}
.compare-table th:first-child, .compare-table td:first-child {
  text-align: left; width: 180px; white-space: nowrap;
}
.compare-table thead th {
  vertical-align: top; background: var(--bg-input);
}
.compare-table thead th:first-child {
  background: transparent;
}
.compare-table .category-row {
  background: var(--bg-secondary); font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  text-align: left; color: var(--text-secondary);
}
.compare-table tbody td { background: var(--bg-card); transition: background 0.15s; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:hover td { background: var(--bg-card-hover); }
.compare-table.unified { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.compare-table.unified thead th { border-bottom: 2px solid var(--border); }
.compare-table.unified tbody tr:last-child td { border-bottom: none; }

.best-value { color: var(--accent-green); font-weight: 700; }
.worst-value { color: var(--accent-red); }

.compare-chart-area {
  padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 20px;
}
.compare-chart-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
/* 图表标题标签：实测 / 拟合 */
.cmp-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 9999px; letter-spacing: 0.3px; flex-shrink: 0;
  border: 1px solid; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-transform: uppercase;
}
.tag-measured {
  background: linear-gradient(135deg, #DCFCE7, #D1FAE5);
  color: #166534; border-color: #86EFAC;
}
.tag-measured::before {
  content: "●"; font-size: 8px; color: #22C55E;
}
.tag-fitted {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E; border-color: #FCD34D;
}
.tag-fitted::before {
  content: "~"; font-size: 10px; color: #F59E0B; font-weight: 700;
}
.compare-chart-canvas { width: 100%; height: 300px; position: relative; }
.compare-chart-canvas canvas { width: 100% !important; height: 100% !important; }

.compare-media-grid {
  display: grid; gap: 12px; margin-bottom: 20px;
}
.compare-media-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.compare-media-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.compare-media-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.compare-media-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; text-align: center;
}
.compare-media-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }

.media-empty {
  background: var(--bg-input); border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); font-size: 13px;
  padding: 30px; min-height: 60px;
}

/* ── Fan Selector Panel ── */
.fan-selector-panel {
  padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.fan-selector-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.fan-selector-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-input);
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.fan-selector-item:hover { border-color: var(--accent-blue); }
.fan-selector-item.selected {
  border-color: var(--accent-blue); background: rgba(59,130,246,0.08);
}
.fan-selector-check {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--text-muted); display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s;
}
.fan-selector-item.selected .fan-selector-check {
  background: var(--accent-blue); border-color: var(--accent-blue); color: #fff;
}
.fan-selector-name { font-size: 14px; font-weight: 600; }
.fan-selector-meta { font-size: 12px; color: var(--text-secondary); }

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }

/* ── Back Link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 13px; margin-bottom: 16px;
  cursor: pointer; transition: color 0.2s;
}
.back-link:hover { color: var(--accent-blue); }

/* ── Footer ── */
.footer {
  text-align: center; padding: 20px 0; margin-top: 24px;
  border-top: 1px solid var(--border); font-size: 13px;
  color: var(--text-muted);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  max-width: 400px;
}
.footer-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}
.footer-info { text-align: left; }
.footer-creator {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.footer-creator-logo {
  width: 20px; height: 20px; object-fit: contain;
  flex-shrink: 0;
}
.footer-creator-sub {
  font-size: 12px; color: var(--text-secondary); margin-top: 2px;
}
.footer-creator-sub a { color: var(--accent-blue); }
.footer-creator-sub a:hover { text-decoration: underline; }
.footer-copy {
  font-size: 12px; color: var(--text-muted); margin-top: 4px;
}

/* ═══════════════ 手机端独立UI（≤768px）══════════════════ */
/* 设计原则：原生手机体验，非桌面缩放版 */
@media (max-width: 768px) {

  /* ── 根元素：严禁溢出 ── */
  html, body {
    width: 100% !important; max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
  }
  * { box-sizing: border-box; }

  /* ══ 导航栏：极简顶栏 ══ */
  .navbar {
    position: sticky; top: 0; z-index: 100;
    padding: 0 12px !important;
    height: auto !important; min-height: 48px;
    max-height: none;
    background: rgba(240,241,245,0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .navbar-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    height: 48px !important;
    padding: 0 !important;
    gap: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  /* LOGO品牌：紧凑排列，不换行 */
  .navbar-inner > .navbar-brand {
    order: 1; gap: 6px;
    flex-shrink: 1; min-width: 0;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    position: static !important; z-index: auto;
  }
  .navbar-logo {
    width: 24px !important; height: 24px !important;
    border-radius: 6px; flex-shrink: 0;
  }
  .navbar-brand-text {
    display: flex !important; flex-direction: row !important;
    align-items: baseline !important;
    gap: 4px !important; line-height: 1.1 !important;
    overflow: hidden; white-space: nowrap;
  }
  .navbar-brand-name {
    font-size: 14px !important; font-weight: 700;
    letter-spacing: -0.2px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .navbar-brand-author {
    display: inline !important; font-size: 9px !important;
    color: var(--text-muted); font-weight: 400;
    flex-shrink: 0; white-space: nowrap;
  }

  /* 汉堡按钮：始终显示，紧贴右侧 */
  .navbar-inner > .nav-hamburger {
    order: 3; display: flex !important;
    background: none; border: none; cursor: pointer;
    padding: 8px; margin-left: auto;
    margin-right: -4px;
    flex-shrink: 0;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
  }
  .nav-hamburger svg { width: 20px; height: 20px; color: var(--text-primary); }

  /* 导航链接：折叠下拉，绝对定位不挤占宽度 */
  .navbar-inner > .navbar-links {
    order: 10;
    display: none !important;
    position: absolute !important;
    top: 48px !important; left: 0 !important; right: 0 !important;
    transform: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 99;
    padding: 6px 0 !important;
  }
  .navbar-links.open { display: flex !important; }
  .navbar-links a {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 15px !important; font-weight: 500;
    border-bottom: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    transition: all 0.15s ease;
  }
  .navbar-links a:hover, .navbar-links a.active {
    background: rgba(59,130,246,0.06) !important;
    color: var(--accent-blue) !important;
    border-left-color: var(--accent-blue) !important;
  }

  /* 搜索框：隐藏在汉堡菜单内 */
  .navbar-inner > .navbar-search {
    display: none !important;
  }
  /* 手机端搜索框（在汉堡菜单内展开） */
  .mobile-search {
    display: none;
    position: absolute !important;
    top: 48px; left: 0; right: 0;
    background: var(--bg-card);
    z-index: 98;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .mobile-search.open { display: block !important; }
  .mobile-search input {
    width: 100%; padding: 12px 12px 12px 36px;
    font-size: 14px; border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0; background: var(--bg-card);
    outline: none; box-sizing: border-box;
  }
  /* 汉堡菜单打开时显示搜索框 */
  .navbar-links.open ~ .navbar-search,
  .navbar-links.open + .navbar-search {
    /* 通过JS控制 */
  }

  /* ══ 主容器 ══ */
  .main-container {
    padding: 12px 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden;
  }

  /* ══ 页面标题 ══ */
  .page-title {
    font-size: 20px !important;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.25;
  }
  .page-subtitle {
    font-size: 12.5px;
    margin-bottom: 14px;
    line-height: 1.5;
  }

  /* ══ 筛选栏：纵向流式 ══ */
  .filter-bar {
    padding: 14px 10px !important;
    gap: 12px;
    flex-direction: column !important;
    align-items: stretch !important;
    border-radius: 12px;
    margin-bottom: 14px;
    width: 100%;
  }
  .filter-bar > div { width: 100%; }
  .filter-bar label {
    display: block; margin-bottom: 6px;
    font-weight: 600; font-size: 12px; color: var(--text-primary);
  }
  .filter-bar select {
    width: 100%; padding: 10px 34px 10px 12px; font-size: 14px;
    border-radius: 8px; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238890AA' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
  }
  .filter-bar input[type="range"] {
    width: 100%; max-width: none; height: 6px;
    border-radius: 3px; margin-top: 4px;
  }
  .filter-bar input[type="range"]::-webkit-slider-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .bearing-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: flex-start;
  }
  .bearing-tag {
    padding: 7px 14px; font-size: 13px; border-radius: 16px;
    min-height: 34px; display: inline-flex; align-items: center;
  }
  .price-display {
    text-align: left; font-size: 14px; font-weight: 700;
  }

  /* 移动端表格包装器：透明不约束（卡片式布局） */
  .fan-table-wrap {
    padding: 0 !important;
    overflow-x: visible !important;
  }

  /* ══ 风扇列表：卡片模式 ══ */
  .fan-table {
    display: block !important;
    border-spacing: 0 !important;
    width: 100%;
  }
  .fan-table thead { display: none !important; }
  .fan-table tbody { display: block !important; }
  .fan-table tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 14px 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    width: 100%;
    gap: 0 10px;
  }
  .fan-table td {
    display: flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
  }
  .fan-table td::before {
    content: attr(data-label);
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    min-width: 32px; flex-shrink: 0;
    letter-spacing: 0.3px;
    margin-right: 4px;
  }

  /* Grid 列分配：型号占满行，排名移到右侧堆叠内，旧列隐藏 */
  .fan-table .m-td-rank { display: none !important; }
  .fan-table .m-td-model { grid-column: 1 / -1; padding-bottom: 8px !important; }
  .fan-table .m-td-model::before { display: none !important; }
  .fan-table .m-td-rpm { display: none !important; }
  .fan-table .m-td-price { grid-column: 1 / -1; padding-bottom: 2px !important; }
  .fan-table .m-td-af { grid-column: 1 / 2; }
  .fan-table .m-td-pr { grid-column: 2 / 3; }
  .fan-table .m-td-noise { grid-column: 1 / 2; }
  .fan-table .m-td-rating { grid-column: 2 / 3; }
  .fan-table .m-td-action { grid-column: 1 / -1; padding-top: 4px !important; }
  .fan-table .m-td-action::before { display: none !important; }

  /* 配对项之间的分隔线 */
  .fan-table .m-td-af { border-right: 1px solid rgba(0,0,0,0.06) !important; padding-right: 8px !important; }
  .fan-table .m-td-pr { padding-left: 8px !important; }
  .fan-table .m-td-noise { border-right: 1px solid rgba(0,0,0,0.06) !important; padding-right: 8px !important; }
  .fan-table .m-td-rating { padding-left: 8px !important; }

  /* 配对行间距 */
  .fan-table .m-td-af, .fan-table .m-td-pr { border-bottom: 1px solid rgba(0,0,0,0.04) !important; padding-bottom: 6px !important; }
  .fan-table .m-td-noise, .fan-table .m-td-rating { padding-top: 6px !important; border-bottom: 1px solid rgba(0,0,0,0.04) !important; padding-bottom: 6px !important; }
  .fan-table .m-td-action { padding-top: 6px !important; }

  /* 名称行 - 左侧图片名称(flex:1) + 右侧堆叠(rank/按钮/rpm) */
  .fan-cell { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; width: 100%; }
  .fan-cell > a { min-width: 0; display: flex; align-items: center; gap: 12px; }
  .fan-thumb {
    width: 52px; height: 52px; border-radius: 10px;
    flex-shrink: 0;
  }
  .fan-info { min-width: 0; }
  /* 右侧靠右，子元素右对齐 */
  .m-right-stack {
    display: flex !important; flex-direction: column; align-items: flex-end;
    gap: 0; padding-top: 2px;
  }
  /* 药丸包装：inline-flex 收缩到按钮行宽度 */
  .m-rpm-wrap {
    display: inline-flex; flex-direction: column; align-items: stretch;
    gap: 4px; min-width: 0;
  }
  .m-right-stack .m-top-row {
    display: flex; flex-direction: row; align-items: center;
    justify-content: flex-end; gap: 6px;
  }
  .m-right-stack .m-inline-rank { display: flex !important; }
  .m-right-stack .m-inline-actions {
    display: flex; flex-direction: row; gap: 4px;
  }
  .m-right-stack .action-btn,
  .m-right-stack button.action-btn {
    padding: 4px 10px; font-size: 10px; height: 26px; min-height: 26px;
    background: #fff; border: 1.5px solid #d1d5db; border-radius: 12px;
    color: #374151; text-decoration: none;
    display: inline-flex; align-items: center; gap: 3px;
    box-sizing: border-box; line-height: 1;
  }
  .m-right-stack .action-btn.compare-active {
    border-color: #3b82f6; color: #3b82f6; background: #eff6ff;
  }
  .m-right-stack .action-btn svg { width: 11px; height: 11px; }
  .m-right-stack .fan-rpm {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    background: #f3f4f6; border-radius: 10px; padding: 3px 12px;
    width: 100%; box-sizing: border-box;
  }
  .fan-rpm .fr-val { font-size: 13px; font-weight: 700; color: #374151; line-height: 1.2; }
  .fan-rpm .fr-unit { font-size: 9px; color: #9ca3af; }
  .fan-name {
    font-size: 15px; font-weight: 700;
    line-height: 1.3;
    white-space: normal; overflow: visible; max-width: none; text-overflow: clip;
  }
  .fan-brand { font-size: 12px; margin-top: 2px; }
  .rank-badge {
    width: 32px; height: 32px; font-size: 14px;
    flex-shrink: 0; border-radius: 50%;
  }
  .spec-value { font-size: 16px; font-weight: 700; }
  .spec-unit { font-size: 10px; }
  .spec-tested { font-size: 9px !important; padding: 1px 4px !important; }
  .spec-official { font-size: 10px !important; }
  .fan-price { font-size: 16px; }
  .rating-stars { gap: 2px !important; }
  .stars { font-size: 11px !important; }
  .rating-num { font-size: 12px !important; }
  .action-btn {
    min-height: 34px; padding: 6px 12px; font-size: 12px;
    border-radius: 8px;
  }
  .action-btn + .action-btn { margin-left: 6px; }
  .fan-table tr:hover td,
  .fan-table tr:hover { background: transparent; transform: none; }

  /* ═════════ 详情页头部 ═════════ */
  .detail-header {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    gap: 14px;
    align-items: stretch !important;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    width: 100%;
  }
  .detail-image-placeholder {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    min-height: 0 !important; min-width: 0 !important;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    flex-shrink: 0;
  }
  .detail-image-placeholder img {
    width: 100% !important; max-width: 100% !important;
    height: auto !important; object-fit: contain; display: block;
  }
  .detail-image-placeholder svg { display: none; }
  .detail-image-placeholder span { display: none; }

  .detail-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .detail-info-main { width: 100%; min-width: 0; }
  .detail-model {
    font-size: 20px !important; font-weight: 800;
    word-break: break-word; line-height: 1.2;
  }
  .detail-brand { font-size: 14px !important; }
  .rating-stars { flex-wrap: wrap; gap: 4px; }

  .detail-specs-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important; width: 100%;
  }
  .detail-spec {
    width: 100% !important; min-width: 0 !important;
    padding: 10px 12px !important;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    gap: 2px;
  }
  .detail-spec-label { font-size: 10px; margin-bottom: 0; }
  .detail-spec-value { font-size: 18px !important; font-weight: 800; }

  /* 雷达图：全宽居中 */
  .detail-radar {
    width: 100% !important; max-width: 200px !important;
    height: auto !important; aspect-ratio: 1/1 !important;
    margin: 0 auto !important; margin-right: auto !important;
    align-self: center !important;
    border-radius: 12px;
    order: -1;
    overflow: hidden;
    padding: 4px !important;
  }
  .detail-radar canvas {
    width: 100% !important; height: 100% !important;
    max-width: 100% !important; max-height: 100% !important;
  }

  .detail-actions {
    display: flex !important;
    flex-direction: row !important;
    width: 100%; gap: 8px;
  }
  .btn-detail {
    flex: 1; text-align: center; font-size: 13px; font-weight: 600;
    padding: 11px 12px !important; border-radius: 8px;
    min-height: 40px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
  }
  /* 移动端Bilibili按钮独占整行 */
  .detail-actions { flex-wrap: wrap !important; }
  .btn-detail.bilibili-btn {
    flex: 1 1 100% !important; width: 100% !important;
  }

  /* ═════════ 详情页导航：横向滚动Tab ═════════ */
  .detail-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
  }
  .detail-sidebar {
    width: 100% !important;
    position: sticky !important;
    top: 48px !important; /* navbar高度 */
    z-index: 50;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
  }
  .sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-link {
    white-space: nowrap; flex-shrink: 0;
    font-size: 12px !important; font-weight: 500;
    padding: 12px 12px !important;
    border-left: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease;
    line-height: 1.2 !important;
  }
  .sidebar-link:hover, .sidebar-link.active {
    background: transparent !important;
    color: var(--accent-blue) !important;
    border-bottom-color: var(--accent-blue) !important;
    font-weight: 700 !important;
  }
  .detail-content {
    width: 100% !important; min-width: 0 !important;
    overflow-x: hidden;
  }

  /* ═════════ 板块容器 ═════════ */
  .data-section {
    padding: 16px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
  }
  .section-title {
    font-size: 17px !important; font-weight: 800;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  /* ═════════ 参数网格 ═════════ */
  .spec-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .text-data-item {
    padding: 12px 10px !important;
    min-width: 0 !important; max-width: none !important;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
  }
  .text-data-value {
    font-size: 20px !important; font-weight: 800;
    word-break: break-word; white-space: normal;
  }
  .text-data-label { font-size: 11px !important; }
  .text-data-header {
    flex-direction: column; align-items: flex-start; gap: 3px;
    margin-bottom: 6px;
  }

  /* ═════════ 图表 ═════════ */
  .chart-container {
    width: 100% !important;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .chart-container canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3 !important;
    min-width: 0 !important;
    display: block;
  }
  .chart-label {
    font-size: 13px !important; font-weight: 600;
    margin-bottom: 8px;
  }

  /* ═════════ 图片画廊 ═════════ */
  .image-gallery {
    width: 100% !important; max-width: 100% !important;
    overflow: hidden; border-radius: 10px;
  }
  .image-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; width: 100% !important;
  }
  .image-grid-item {
    max-width: 100% !important;
    flex: none !important; min-width: 0 !important;
    width: 100% !important;
    border-radius: 10px; overflow: hidden;
  }
  .image-grid-item.image-grid-main { max-width: 100% !important; flex: none !important; }
  .image-main { border-radius: 10px; overflow: hidden; }
  .image-main img,
  .image-grid-item img {
    width: 100% !important; max-width: 100% !important;
    height: auto !important; object-fit: contain; display: block;
  }

  /* ═════════ GIF / 视频 ═════════ */
  .gif-caption { font-size: 13px !important; line-height: 1.4; }
  .gif-container { border-radius: 10px; overflow: hidden; }
  .gif-container img, .gif-container video {
    width: 100% !important; max-width: 100% !important;
    height: auto !important;
  }

  /* ═════════ 声音试听面板 ═════════ */
  .sound-listening-panel { border-radius: 12px; overflow: hidden; }
  .slp-grid {
    grid-template-columns: 1fr !important;
    gap: 8px; padding: 12px 10px 6px !important;
  }
  .slp-btn { padding: 12px 14px !important; gap: 12px; border-radius: 10px; }
  .slp-btn-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
  .slp-btn-label { font-size: 13px !important; font-weight: 700; }
  .slp-waveform canvas { height: 100px !important; width: 100% !important; }

  /* ═════════ 佳乐说 ═════════ */
  .jiale-say {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding-top: 14px !important;
    align-items: flex-start !important;
  }
  .jiale-say-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    flex-shrink: 0;
  }
  .jiale-bubble {
    position: relative !important;
    background: #EFF6FF !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    flex: 1; min-width: 0;
    box-sizing: border-box !important;
    color: #1E3A5F; font-size: 13px !important;
    line-height: 1.7 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .jiale-bubble::before, .jiale-bubble::after { display: none !important; }

  /* ═════════ Lightbox ═════════ */
  .lightbox { z-index: 9999; }
  .lightbox img {
    max-width: 95vw !important; max-height: 95vh !important;
    border-radius: 10px; object-fit: contain;
  }

  /* ═════════ 3D 模型 ═════════ */
  .model-viewer-wrap {
    height: auto !important; width: 100% !important;
    aspect-ratio: 2 / 1;
    border-radius: 10px; overflow: hidden;
  }

  /* ═════════ 评语区 ═════════ */
  .review-section {
    padding: 16px 12px !important; border-radius: 12px;
  }
  .review-comment {
    font-size: 13px !important; padding: 14px 12px !important;
    line-height: 1.8; border-radius: 8px; white-space: pre-wrap;
    word-break: break-word;
  }

  /* ═════════ 返回链接 ═════════ */
  .back-link {
    font-size: 13px !important; margin-bottom: 12px;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .back-link svg { width: 14px; height: 14px; flex-shrink: 0; }

  /* ═════════ Footer：紧凑居中 ═════════ */
  .footer {
    padding: 20px 12px !important;
    margin-top: 20px;
    border-radius: 0;
  }
  .footer-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 100%;
    text-align: left;
  }
  .footer-brand img[alt="佳乐同学"] {
    width: 36px !important; height: 36px !important;
  }
  .footer-info { text-align: left; flex: 1; min-width: 0; }
  .footer-creator {
    font-size: 13px !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    display: flex !important;
  }
  .footer-creator img {
    width: 16px !important; height: 16px !important;
  }
  .footer-creator-sub { font-size: 11px !important; }
  .footer-copy { font-size: 11px !important; }

  /* ═════════ 对比页 ═════════ */
  .compare-table-wrap {
    border-radius: 10px !important;
    overflow: hidden;
  }
  .compare-media-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .compare-media-grid.cols-2,
  .compare-media-grid.cols-3,
  .compare-media-grid.cols-4 { grid-template-columns: 1fr !important; }
  .compare-media-item { border-radius: 8px; padding: 10px; }

  .fan-selector-panel { padding: 14px 10px !important; border-radius: 12px; }
  .fan-selector-grid { grid-template-columns: 1fr !important; gap: 6px; }
  .fan-selector-item { padding: 10px 12px; border-radius: 8px; }

  .compare-chart-box {
    padding: 12px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }
  .compare-chart-title { font-size: 12px !important; margin-bottom: 8px !important; gap: 6px !important; }
  .compare-chart-canvas {
    width: 100% !important;
    height: auto !important;
  }
  .compare-chart-canvas canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3 !important;
  }

  .compare-table {
    font-size: 11px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table th, .compare-table td {
    padding: 8px 6px !important;
    font-size: 11px;
    white-space: nowrap;
  }
  .compare-table th:first-child,
  .compare-table td:first-child {
    width: 80px; min-width: 80px;
    white-space: normal;
    font-size: 10px;
    padding: 6px 8px !important;
  }
  .fan-header { padding: 10px !important; }
  .fan-header img {
    width: 40px !important; height: 40px !important;
    margin-bottom: 6px !important;
  }
  .fan-header .model { font-size: 12px !important; }
  .fan-header .brand { font-size: 10px !important; margin-bottom: 4px !important; }
  .fan-header .price { font-size: 11px !important; }
  .category-row {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .cmp-untested {
    padding: 3px 8px !important;
    font-size: 10px !important;
    border-radius: 5px;
  }

  /* 对比浮动栏 */
  .compare-float-bar {
    left: 8px !important; right: 8px !important;
    bottom: -80px; transform: none !important;
    width: auto; max-width: none;
    padding: 10px 12px; border-radius: 20px !important;
    flex-wrap: wrap; justify-content: center; gap: 6px;
  }
  .compare-float-bar.visible { bottom: 12px !important; }
  .compare-float-bar > span { display: none; }
  .btn-compare {
    font-size: 12px; padding: 8px 16px; border-radius: 16px;
    min-height: 36px;
  }
  .compare-chip { padding: 6px 10px; border-radius: 6px; }
  .compare-chip-name { font-size: 11px; max-width: 80px; }

  /* 对比页footer */
  footer[style] {
    padding: 20px 12px !important;
  }
  footer[style] > div:first-child {
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
  }
  footer[style] > div:first-child img {
    width: 36px !important; height: 36px !important;
    flex-shrink: 0;
  }
  footer[style] > div:first-child > div {
    flex: 1; min-width: 0;
  }
  footer[style] > div:first-child > div > div:first-child {
    font-size: 13px;
  }
  footer[style] > div:last-child {
    font-size: 11px !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
  }
}

/* ═══ 超小屏幕（≤480px）精细优化 ═══ */
@media (max-width: 480px) {
  .main-container { padding: 8px !important; }

  /* 导航栏更紧凑 */
  .navbar { min-height: 44px; padding: 0 8px !important; }
  .navbar-inner { height: 44px !important; }
  .navbar-logo { width: 22px !important; height: 22px !important; }
  .navbar-brand-name { font-size: 13px !important; }
  .navbar-brand-author { font-size: 8px !important; }
  .detail-sidebar { top: 44px !important; }

  .page-title { font-size: 18px !important; }
  .page-subtitle { font-size: 12px; margin-bottom: 12px; }

  .filter-bar { padding: 12px 8px !important; gap: 10px; }
  .bearing-tag { padding: 6px 12px; font-size: 12px; min-height: 32px; }

  .fan-table tr { padding: 12px 8px 12px 12px !important; margin-bottom: 8px; border-radius: 10px; gap: 0 6px; }
  .fan-thumb { width: 44px; height: 44px; border-radius: 8px; }
  .fan-name { font-size: 14px; }
  .rank-badge { width: 28px; height: 28px; font-size: 12px; }
  .spec-value { font-size: 15px; }
  .spec-unit { font-size: 9px; }
  .spec-tested { font-size: 8px !important; padding: 0 3px !important; }
  .spec-official { font-size: 9px !important; }
  .stars { font-size: 10px !important; }
  .rating-num { font-size: 11px !important; }
  .action-btn { padding: 5px 10px; font-size: 11px; }

  .detail-header { padding: 12px !important; gap: 12px; }
  .detail-image-placeholder { max-width: 180px !important; }
  .detail-model { font-size: 18px !important; }
  .detail-spec-value { font-size: 16px !important; }
  .detail-radar { max-width: 160px !important; }
  .btn-detail { font-size: 12px; padding: 10px 10px !important; min-height: 36px; }

  .section-title { font-size: 15px !important; margin-bottom: 10px !important; }
  .data-section { padding: 14px 10px !important; margin-bottom: 10px !important; }

  .text-data-item { padding: 10px 8px !important; }
  .text-data-value { font-size: 18px !important; }
  .text-data-label { font-size: 10px !important; }

  .chart-container canvas { aspect-ratio: 1/1 !important; }
  .chart-label { font-size: 12px !important; }

  .sidebar-link { padding: 10px 10px !important; font-size: 11px !important; }
  .slp-btn { padding: 10px 12px !important; }
  .slp-btn-icon { width: 38px; height: 38px; }
  .slp-btn-label { font-size: 12px !important; }

  .jiale-say-avatar { width: 30px; height: 30px; }
  .jiale-bubble { font-size: 12px !important; padding: 10px 12px !important; }

  .review-comment { font-size: 12px !important; padding: 10px !important; }

  .footer-brand img[alt="佳乐同学"] { width: 32px !important; height: 32px !important; }
}

/* ═══ 强制覆盖：确保手机端导航不换行 ═══ */
@media (max-width: 768px) {
  .navbar { background: var(--navbar-bg, #1A1D2E) !important; }
}

