/* ═══════════════════════════════════════════════════
   FearlessMedia — 样式表
   明亮清新 · 金色点缀 · 全端适配
═══════════════════════════════════════════════════ */

/* ─── CSS 变量（明亮版）──────────────────────────── */
:root {
  /* 背景层级 — 明亮暖调 */
  --bg-primary:    #faf9f7;
  --bg-secondary:  #f0eeeb;
  --bg-card:       #ffffff;
  --bg-card-hover: #fefdfb;
  --color-gold:    #9a7d5a;
  --color-gold-light: #b8956e;
  --color-gold-dim:   #c4a97d;
  /* 文字层级 — 深色 */
  --text-primary:  #1a1816;
  --text-secondary: #5a5550;
  --text-muted:    #8a8480;
  --border-color:  #e5e0da;
  --border-gold:   rgba(154, 125, 90, 0.35);
  --shadow-card:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-modal:  0 16px 48px rgba(0,0,0,0.12);
  --radius-card:   12px;
  --radius-modal:  16px;
  --transition:    0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif:    'Source Han Sans SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-display:  'Source Han Sans SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;

  /* 网格间距变量 */
  --grid-gap:      28px;
}

/* ─── 重置 & 基础 ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-serif);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ─── 顶部导航 ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0 18px;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95) drop-shadow(0 2px 8px rgba(154, 125, 90, 0.15));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════
   Hero 品牌首屏区
═══════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero 背景层 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(196, 169, 125, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(180, 150, 110, 0.08) 0%, transparent 60%),
    linear-gradient(170deg, #faf9f7 0%, #f5f2ed 40%, #faf9f7 100%);
}

/* 粒子动画 */
.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(154, 125, 90, 0.2);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translate(20px, -30px) scale(1.3);
    opacity: 0.5;
  }
  50% {
    transform: translate(-10px, -50px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translate(25px, -20px) scale(1.15);
    opacity: 0.4;
  }
}

/* Hero 内容 */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Hero 标题容器 — 重置 h1 默认样式 */
.hero-title {
  margin-bottom: 16px;
}

.hero-title,
.hero-title * {
  margin: 0;
  padding: 0;
}

.hero-title-zh {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  line-height: 1.3;
}

.hero-title-en {
  display: none;
}

.hero-slogan {
  display: block;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-top: 8px;
  margin-bottom: 10px;
}

.hero-sub {
  display: none;
}

/* 统计数字 */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 42px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-display);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* CTA 按钮 */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: var(--color-gold);
  border: none;
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(154, 125, 90, 0.25);
}

.hero-cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(154, 125, 90, 0.3);
}

.hero-cta svg {
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateY(2px);
}

/* ══════════════════════════════════════════════════
   筛选工具栏 — 优化版
═══════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

/* 搜索框 — 重新设计 */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
}

.search-box:focus-within {
  border-color: var(--color-gold);
  box-shadow: none;
  background: var(--bg-card);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
  transition: color var(--transition);
}

.search-box:focus-within .search-icon {
  color: var(--color-gold);
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
  transition: color var(--transition);
}

.search-input:focus::placeholder {
  color: var(--color-gold-dim);
}

.search-clear {
  position: absolute;
  right: 8px;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: var(--transition);
}

.search-clear:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.search-kbd {
  position: absolute;
  right: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: inherit;
  pointer-events: none;
  transition: opacity 0.2s;
}

.search-box:focus-within .search-kbd,
.search-box:has(.search-input:not(:placeholder-shown)) .search-kbd {
  opacity: 0;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 7px 18px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--color-gold-dim);
  color: var(--color-gold);
  background: rgba(154, 125, 90, 0.04);
}

.cat-tab.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(154, 125, 90, 0.2);
}

/* 结果计数 */
.filter-result {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.filter-result strong {
  color: var(--color-gold);
  font-weight: 600;
}

/* 搜索高亮 */
.hl {
  background: rgba(154, 125, 90, 0.18);
  color: var(--color-gold);
  border-radius: 2px;
  padding: 0 2px;
}

/* ─── 主内容区 ──────────────────────────────────── */
.main-content {
  padding-top: 48px;
  padding-bottom: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 36px;
  padding-right: 36px;
}

/* ─── 视频网格 ──────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

/* 卡片入场动画 */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: cardIn 0.5s ease both;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-gold-dim);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.08),
    0 0 28px rgba(154, 125, 90, 0.08);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-card:hover .card-cover {
  transform: scale(1.06);
}

/* ─── 卡片封面 ──────────────────────────────────── */
.card-cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--bg-secondary);
}

.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 封面加载失败占位 */
.card-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bg-secondary), #e8e4df);
}

.fallback-icon { font-size: 2rem; opacity: 0.4; }
.fallback-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 12px;
}

/* 播放按钮遮罩 */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.play-btn svg {
  margin-left: 3px;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* 时长标签 */
.duration-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ─── 卡片信息 ──────────────────────────────────── */
.card-info {
  padding: 16px 18px 20px;
}

.card-meta {
  margin-bottom: 8px;
}

.card-category {
  font-size: 0.68rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.video-card:hover .card-title {
  color: var(--color-gold);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── 骨架屏加载态 ─────────────────────────────── */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.skeleton-cover {
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(90deg, #eeebe6 25%, #f5f2ed 50%, #eeebe6 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-title {
  height: 18px;
  width: 70%;
  margin: 16px 18px 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eeebe6 25%, #f5f2ed 50%, #eeebe6 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-desc {
  height: 13px;
  width: 90%;
  margin: 0 18px 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eeebe6 25%, #f5f2ed 50%, #eeebe6 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ─── 空状态 & 错误状态 ─────────────────────────── */
.empty-state,
.error-state {
  text-align: center;
  padding: 100px 0;
}

.empty-icon, .error-icon { font-size: 3rem; margin-bottom: 16px; }

.empty-search-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ececec;
  border-radius: 50%;
  background: #fff;
  color: #9a7d5a;
}

.empty-search-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-search-icon circle {
  fill: #f3f3f3;
}

.empty-state p,
.error-state p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

.retry-btn {
  margin-top: 20px;
  padding: 10px 28px;
  background: var(--color-gold);
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.retry-btn:hover {
  background: var(--color-gold-light);
  box-shadow: 0 4px 12px rgba(154, 125, 90, 0.2);
}

.load-more-wrap {
  align-items: center;
  justify-content: center;
  margin: 42px auto 0;
}

.load-more-btn {
  min-width: 132px;
  height: 42px;
  padding: 0 24px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.load-more-btn:hover:not(:disabled) {
  border-color: #bdbdbd;
  background: #f8f8f8;
  color: #111;
}

.load-more-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* ─── 播放器弹窗 ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: var(--radius-modal);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-modal);
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--color-gold-dim);
  transform: scale(1.1) rotate(90deg);
}

/* 视频播放器 */
.player-wrap {
  width: 100%;
  background: #000;
  line-height: 0;
}

.player-video {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

/* 播放器信息区 */
.player-info {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-color);
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.player-category {
  font-size: 0.7rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.player-duration {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.player-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.player-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── 弹窗动画 ──────────────────────────────────── */
.modal-fade-enter-active {
  transition: opacity 0.3s ease;
}
.modal-fade-leave-active {
  transition: opacity 0.25s ease;
}
.modal-fade-enter-from,
.modal-fade-leave-to {
  opacity: 0;
}

.modal-fade-enter-active .modal-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-fade-enter-from .modal-box {
  transform: scale(0.88);
}
.modal-fade-enter-to .modal-box {
  transform: scale(1);
}

/* ─── 页脚 ───────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
}

/* ══════════════════════════════════════════════════
   响应式设计 — 全端适配
════════════════════════════════════════════════════ */

/* ── 平板横屏 (≤1200px)：4列 → 3列 ─────────────── */
@media (max-width: 1200px) {
  .video-grid,
  .loading-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  :root {
    --grid-gap: 24px;
  }

  /* Hero 缩小 */
  .hero-title-zh { font-size: 2.8rem; }
  .hero-title-en { font-size: 1.15rem; }
  .hero-slogan { font-size: 1.05rem; }
  .stat-num { font-size: 1.9rem; }
}

/* ── 平板竖屏 (≤900px)：3列 → 2列 ──────────────── */
@media (max-width: 900px) {
  .video-grid,
  .loading-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  :root {
    --grid-gap: 20px;
  }
  .main-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-inner {
    padding: 0 20px;
  }

  /* Hero 更紧凑 */
  .hero-section { min-height: 58vh; }
  .hero-title-zh { font-size: 2.2rem; }
  .hero-title-en { font-size: 1rem; }
  .hero-slogan { font-size: 0.95rem; letter-spacing: 0.12em; }
  .hero-sub { font-size: 0.8rem; margin-bottom: 28px; }
  .hero-stats { gap: 20px; margin-bottom: 32px; }
  .stat-num { font-size: 1.6rem; }
  .hero-cta { padding: 11px 30px; font-size: 0.88rem; }

  /* 筛选栏换行 */
  .filter-bar { padding: 13px 16px; gap: 12px; }
  .search-box { max-width: 100%; min-width: 160px; flex: 1 1 180px; }
  .filter-result { margin-left: 0; width: 100%; text-align: center; order: 10; }

  /* 播放器弹窗适配 */
  .modal-box {
    max-width: 95vw;
  }
  .player-video {
    max-height: 55vh;
  }
}

/* ── 手机大屏 (≤640px)：2列 → 单列 ──────────────── */
@media (max-width: 640px) {
  html { font-size: 15px; }

  .video-grid,
  .loading-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .main-content {
    padding-top: 36px;
    padding-bottom: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 导航栏紧凑化 */
  .site-header {
    padding: 14px 0 10px;
  }
  .site-header.scrolled {
    padding: 10px 0;
  }
  .header-inner {
    padding: 0 16px;
    gap: 4px;
  }
  .logo-img {
    height: 34px;
  }
  .logo-text {
    font-size: 1.3rem;
  }
  .header-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  /* Hero 手机版 */
  .hero-section { min-height: auto; padding: 48px 0 40px; }
  .hero-title-zh { font-size: 1.85rem; letter-spacing: 0.08em; }
  .hero-title-en { font-size: 0.9rem; margin-top: 4px; }
  .hero-slogan { font-size: 0.88rem; letter-spacing: 0.08em; }
  .hero-sub { font-size: 0.76rem; margin-bottom: 24px; }
  .hero-stats { gap: 16px; margin-bottom: 28px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.7rem; }
  .hero-cta { padding: 10px 28px; font-size: 0.84rem; }
  .particle { display: none; } /* 手机隐藏粒子 */

  /* 筛选栏手机竖向布局 */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px;
    gap: 12px;
  }
  .search-box { max-width: none; min-width: 0; }
  .category-tabs { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .cat-tab { padding: 6px 14px; font-size: 0.78rem; flex-shrink: 0; }
  .filter-result { text-align: left; order: unset; }

  /* 卡片优化：手机上更宽松 */
  .card-info {
    padding: 14px 16px 18px;
  }
  .card-title {
    font-size: 0.98rem;
  }
  .card-desc {
    -webkit-line-clamp: 3; /* 手机上多显示一行描述 */
  }

  /* 播放按钮稍小 */
  .play-btn {
    width: 48px;
    height: 48px;
  }

  /* 手机端播放器居中展示 */
  .modal-overlay {
    padding: 16px;
    align-items: center;
  }
  .modal-box {
    border-radius: var(--radius-modal);
    max-height: min(86vh, 620px);
    overflow-y: auto;
  }
  .player-video {
    max-height: 52vh;
  }
  .player-info {
    padding: 16px 18px 20px;
  }
  .player-title {
    font-size: 1.1rem;
  }

  /* 页脚 */
  .site-footer {
    padding: 24px 16px;
    font-size: 0.72rem;
  }
}

/* ── 超小屏 (≤380px)：极窄设备兜底 ──────────────── */
@media (max-width: 380px) {
  html { font-size: 14px; }
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .logo-img {
    height: 30px;
  }
  .card-info {
    padding: 12px 14px 16px;
  }
}

/* ═══════════════════════════════════════════════════
   设计稿对齐：展示页
═══════════════════════════════════════════════════ */
:root {
  --fm-bg-image: url('/public/uploads/bg_display.jpg');
  --fm-soft-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

body {
  background: #fff;
  font-family: 'Source Han Sans SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

.hero-section {
  min-height: 520px;
  height: 43.5vw;
  max-height: 560px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.58), rgba(0,0,0,0.12) 46%, rgba(0,0,0,0.68)),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.18)),
    var(--fm-bg-image);
  background-size: cover;
  background-position: center 58%;
}

.hero-content {
  gap: 88px;
  padding: 78px 24px 68px;
}

.contact-entry {
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: 2;
  height: 42px;
  min-width: 98px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: rgba(226, 226, 226, 0.58);
  color: rgba(30, 30, 30, 0.78);
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-entry:hover {
  background: rgba(245, 245, 245, 0.76);
  transform: translateY(-1px);
}

.hero-logo {
  width: min(34vw, 360px);
  min-width: 220px;
  height: auto;
  object-fit: contain;
  filter: invert(1) brightness(2.4) drop-shadow(0 4px 18px rgba(0,0,0,0.35));
}

.hero-logo-text {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-cta {
  width: 170px;
  height: 44px;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  background: rgba(226, 226, 226, 0.62);
  color: rgba(38, 38, 38, 0.76);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  letter-spacing: 0.08em;
}

.hero-cta:hover {
  background: rgba(246, 246, 246, 0.78);
  color: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}

.main-content {
  max-width: none;
  padding: 24px 40px 96px;
  background: #fff;
}

.filter-bar {
  max-width: 1110px;
  margin: 0 auto 58px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 12px;
}

.search-box {
  min-width: 0;
  max-width: 300px;
  flex: 0 0 300px;
  height: 48px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-box:focus-within {
  border-color: #d9d9d9;
  box-shadow: none;
}

.search-icon {
  left: 16px;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: #d8d8d8;
  color: #fff;
}

.search-input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 13px 44px 13px 56px;
  font-size: 0.95rem;
  color: #1f1f1f;
  caret-color: #1f1f1f;
}

/* ─── 官网访问保护 ──────────────────────────────── */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f7f6f4;
}

.access-panel {
  width: min(420px, 100%);
  padding: 42px 36px 38px;
  border: 1px solid #e5e0da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.access-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  color: #9a7d5a;
}

.access-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.access-panel h1 {
  color: #1a1816;
  font-size: 1.45rem;
  font-weight: 600;
}

.access-panel > p {
  margin-top: 9px;
  color: #77716b;
  font-size: 0.88rem;
}

.access-form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.access-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d9d2ca;
  border-radius: 7px;
  color: #1a1816;
  background: #fff;
  font: inherit;
  outline: none;
}

.access-form input:focus {
  border-color: #9a7d5a;
}

.access-form button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #9a7d5a;
  font: inherit;
  cursor: pointer;
}

.access-form button:hover {
  background: #846847;
}

.access-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.access-error {
  color: #c62828 !important;
  font-size: 0.82rem !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .access-panel {
    padding: 34px 22px 30px;
  }
}

.search-input::placeholder {
  color: #b7b7b7;
}

.search-clear {
  background: transparent;
  color: #9b9b9b;
}

.search-kbd,
.filter-result {
  display: none;
}

.category-tabs {
  flex: 1 1 auto;
  gap: 10px;
}

.cat-tab {
  min-width: 64px;
  width: auto;
  height: 48px;
  padding: 0 18px;
  overflow: visible;
  text-indent: 0;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #606060;
  font-family: inherit;
  font-size: 0.84rem;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cat-tab::before {
  content: none;
}

.cat-tab.active,
.cat-tab:hover {
  background: #f8f8f8;
  border-color: #d9d9d9;
  color: #111;
  box-shadow: none;
}

.video-grid,
.loading-grid {
  max-width: 1110px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 44px;
}

.video-card {
  border-radius: 0;
  border: 1px solid #e7e7e7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: #fff;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: #d6d6d6;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

.card-cover-wrap {
  padding-top: 47.5%;
  background: #1b1b1b;
}

.play-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.play-btn {
  width: 46px;
  height: 46px;
  color: #333;
}

.card-info {
  min-height: 62px;
  padding: 12px 18px 14px;
}

.card-meta {
  margin-bottom: 3px;
}

.card-category,
.duration-tag {
  display: none;
}

.card-title {
  font-size: 0.95rem;
  color: #262626;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #707070;
  -webkit-line-clamp: 1;
}

.site-footer {
  display: none;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal {
  position: relative;
  width: min(360px, 92vw);
  padding: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.contact-close:hover {
  background: #e4e4e4;
  color: #111;
}

.contact-qr {
  display: block;
  width: min(300px, 76vw);
  height: auto;
  margin: 0 auto;
  background: #fff;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 380px;
    height: 56vw;
  }

  .hero-content {
    gap: 54px;
  }

  .main-content {
    padding: 22px 22px 72px;
  }

  .filter-bar {
    margin-bottom: 36px;
  }

  .video-grid,
  .loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 300px;
    height: 68vw;
  }

  .hero-logo {
    min-width: 170px;
    width: 56vw;
  }

  .contact-entry {
    top: 16px;
    right: 16px;
    height: 36px;
    min-width: 88px;
    padding: 0 16px;
    font-size: 0.82rem;
  }

  .hero-content {
    gap: 42px;
    padding: 58px 16px 42px;
  }

  .hero-cta {
    width: 142px;
    height: 40px;
    font-size: 0.84rem;
  }

  .filter-bar {
    align-items: stretch;
    margin-bottom: 28px;
  }

  .search-box {
    flex: 1 1 auto;
    max-width: none;
    height: 42px;
  }

  .search-input {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.86rem;
  }

  .category-tabs {
    gap: 10px;
  }

  .cat-tab {
    min-width: auto;
    height: 42px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .video-grid,
  .loading-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
