/* ============================================================
   home-v2.css  --  VCG 首页样式（重写版）
   ============================================================ */

/* --- 间距变量（固定 8px 网格） --- */
:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-dropdown: 0 4px 12px rgba(0,0,0,0.15);

  /* 布局 */
  --header-height: 60px;
  --content-max-width: 1400px;

  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--vcg-font-family);
  color: var(--vcg-text-primary);
  background: var(--vcg-bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   1. Header（固定顶部 60px）
   ============================================================ */
.header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1000;
  background: var(--vcg-bg-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  height: var(--header-height);
}

.header__inner {
  padding: 0 var(--space-24);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__left {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.home__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #E60012;
  letter-spacing: 1px;
}

.home__logo-sub {
  font-size: 12px;
  color: var(--vcg-text-tertiary);
}

.header__nav {
  display: flex;
  gap: var(--space-24);
}

.home__nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--vcg-text-primary);
  padding: var(--space-4) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.home__nav-item:hover,
.home__nav-item.active {
  color: var(--vcg-brand);
}

.home__nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--vcg-brand);
  border-radius: 2px;
}

/* 汉堡菜单按钮（默认隐藏） */
.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vcg-text-primary);
  padding: var(--space-4);
  font-size: 24px;
}

.header__user {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.home__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vcg-brand);
  color: var(--vcg-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.home__user-name {
  font-size: 13px;
  color: var(--vcg-text-secondary);
}

/* ============================================================
   2. Hero 区域（抽象渐变背景）
   ============================================================ */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-32)) var(--space-24) var(--space-32);
  background:
    radial-gradient(ellipse 600px 500px at 15% 20%, rgba(167,139,250,0.3), transparent),
    radial-gradient(ellipse 500px 450px at 85% 15%, rgba(251,146,160,0.3), transparent),
    radial-gradient(ellipse 550px 480px at 10% 80%, rgba(110,231,183,0.25), transparent),
    radial-gradient(ellipse 500px 420px at 90% 85%, rgba(253,224,71,0.25), transparent),
    radial-gradient(ellipse 700px 600px at 50% 50%, rgba(147,197,253,0.2), transparent),
    var(--vcg-bg-page);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 700px;
}

.hero__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--vcg-text-primary);
  margin-bottom: var(--space-24);
  letter-spacing: 2px;
}

/* 搜索框：48px 高度 */
.hero__search {
  display: flex;
  align-items: center;
  background: var(--vcg-bg-card);
  border: 1px solid var(--vcg-border);
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
  transition: border-color var(--transition-fast);
}

.hero__search:focus-within {
  border-color: var(--vcg-brand);
}

.home__search-type {
  border-right: 1px solid var(--vcg-border);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
}

.search-type__select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--vcg-text-primary);
  padding: var(--space-4) var(--space-8);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.home__search-input-wrap {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.home__search-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 var(--space-16);
  font-size: 14px;
  color: var(--vcg-text-primary);
}

.home__search-input::placeholder {
  color: var(--vcg-text-disabled);
}

.home__search-camera-btn {
  position: absolute;
  right: var(--space-8);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  padding: var(--space-4);
}

.home__search-camera-btn:hover {
  opacity: 1;
}

/* 搜索按钮：48px x 48px 红色 */
.home__search-submit-btn {
  width: 40px;
  height: 40px;
  background: #E60012;
  border: none;
  border-radius: 0 8px 8px 0;
  color: var(--vcg-bg-card);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.home__search-submit-btn:hover {
  background: var(--vcg-brand-hover);
}

/* ============================================================
   3. 分类 Tab（sticky）
   ============================================================ */
.category-tabs {
  background: var(--vcg-bg-card);
  border-bottom: 1px solid var(--vcg-border-light);
}

.category-tabs__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;
  gap: var(--space-32);
  height: 48px;
  align-items: center;
  justify-content: center;
}

.category-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--vcg-text-secondary);
  padding: var(--space-8) 0;
  position: relative;
  transition: color var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-tab:hover {
  color: var(--vcg-text-primary);
}

.category-tab.active {
  color: var(--vcg-brand);
  font-weight: 600;
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--vcg-brand);
  border-radius: 2px 2px 0 0;
}

/* ============================================================
   4. 图片瀑布流（CSS columns）
   ============================================================ */
.gallery {
  padding: var(--space-32) 0;
  max-width: none;
  margin: 0;
}

.gallery__waterfall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* 瀑布流卡片 */
.gallery-card {
  break-inside: auto;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: var(--vcg-bg-card);
  cursor: pointer;
  /* 入场动画 */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

/* stagger delay：前 30 个卡片，每个 0.05s */
.gallery-card:nth-child(1)  { animation-delay: 0.00s; }
.gallery-card:nth-child(2)  { animation-delay: 0.05s; }
.gallery-card:nth-child(3)  { animation-delay: 0.10s; }
.gallery-card:nth-child(4)  { animation-delay: 0.15s; }
.gallery-card:nth-child(5)  { animation-delay: 0.20s; }
.gallery-card:nth-child(6)  { animation-delay: 0.25s; }
.gallery-card:nth-child(7)  { animation-delay: 0.30s; }
.gallery-card:nth-child(8)  { animation-delay: 0.35s; }
.gallery-card:nth-child(9)  { animation-delay: 0.40s; }
.gallery-card:nth-child(10) { animation-delay: 0.45s; }
.gallery-card:nth-child(11) { animation-delay: 0.50s; }
.gallery-card:nth-child(12) { animation-delay: 0.55s; }
.gallery-card:nth-child(13) { animation-delay: 0.60s; }
.gallery-card:nth-child(14) { animation-delay: 0.65s; }
.gallery-card:nth-child(15) { animation-delay: 0.70s; }
.gallery-card:nth-child(16) { animation-delay: 0.75s; }
.gallery-card:nth-child(17) { animation-delay: 0.80s; }
.gallery-card:nth-child(18) { animation-delay: 0.85s; }
.gallery-card:nth-child(19) { animation-delay: 0.90s; }
.gallery-card:nth-child(20) { animation-delay: 0.95s; }
.gallery-card:nth-child(21) { animation-delay: 1.00s; }
.gallery-card:nth-child(22) { animation-delay: 1.05s; }
.gallery-card:nth-child(23) { animation-delay: 1.10s; }
.gallery-card:nth-child(24) { animation-delay: 1.15s; }
.gallery-card:nth-child(25) { animation-delay: 1.20s; }
.gallery-card:nth-child(26) { animation-delay: 1.25s; }
.gallery-card:nth-child(27) { animation-delay: 1.30s; }
.gallery-card:nth-child(28) { animation-delay: 1.35s; }
.gallery-card:nth-child(29) { animation-delay: 1.40s; }
.gallery-card:nth-child(30) { animation-delay: 1.45s; }

/* 图片区域 */
.gallery-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 格式标签：隐藏（纯展示模式） */
.gallery-card__format {
  display: none;
}

/* 悬停操作覆盖层：隐藏（纯展示模式） */
.gallery-card__overlay {
  display: none;
}

.gallery-card__action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--vcg-text-primary);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.gallery-card__action:hover {
  background: #fff;
  transform: scale(1.1);
}

/* 底部信息区：隐藏（纯展示模式） */
.gallery-card__info {
  display: none;
}

.gallery-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--vcg-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card__id {
  font-size: 11px;
  color: var(--vcg-text-tertiary);
  margin-top: var(--space-4);
}

/* ============================================================
   5. 热词推荐（大卡片样式）
   ============================================================ */
.hot-words {
  padding: var(--space-32) var(--space-24);
  max-width: var(--content-max-width);
  margin: 0 auto;
  border-top: 1px solid #f0f0f0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--vcg-text-primary);
  text-align: center;
  margin-bottom: var(--space-16);
}

.hot-words__scroll {
  position: relative;
}

.hot-words__track {
  display: flex;
  gap: var(--space-12);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
}

.hot-words__track::-webkit-scrollbar {
  display: none;
}

/* 热词 pill 卡片：180×56 */
.hot-word {
  flex-shrink: 0;
  width: 180px;
  height: 56px;
  border-radius: 9999px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  /* 入场动画 */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

.hot-word:nth-child(2) { animation-delay: 0.35s; }
.hot-word:nth-child(3) { animation-delay: 0.40s; }
.hot-word:nth-child(4) { animation-delay: 0.45s; }
.hot-word:nth-child(5) { animation-delay: 0.50s; }
.hot-word:nth-child(6) { animation-delay: 0.55s; }
.hot-word:nth-child(7) { animation-delay: 0.60s; }
.hot-word:nth-child(8) { animation-delay: 0.65s; }
.hot-word:nth-child(9) { animation-delay: 0.70s; }
.hot-word:nth-child(10) { animation-delay: 0.75s; }

/* 暗色遮罩 */
.hot-word::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  transition: background var(--transition-fast);
}

.hot-word:hover::before {
  background: rgba(0, 0, 0, 0.45);
}

/* 居中文字 */
.hot-word span,
.hot-word {
  position: relative;
  z-index: 1;
}

.hot-word span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: var(--space-8);
}

.hot-word:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hot-words__arrow {
  display: none;
}

/* ============================================================
   6. 编辑推荐（2x2 网格）
   ============================================================ */
.editor-picks {
  padding: var(--space-32) var(--space-24);
  max-width: var(--content-max-width);
  margin: 0 auto;
  border-top: 1px solid #f0f0f0;
}

.editor-picks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
}

.pick-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  cursor: pointer;
  /* 入场动画 */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.5s;
}

.pick-card:nth-child(2) { animation-delay: 0.55s; }
.pick-card:nth-child(3) { animation-delay: 0.60s; }
.pick-card:nth-child(4) { animation-delay: 0.65s; }

.pick-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pick-card:hover .pick-card__img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 底部渐变覆盖层 */
.pick-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-16);
}

.pick-card__info {
  flex: 1;
}

.pick-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--vcg-bg-card);
  margin-bottom: var(--space-4);
}

.pick-card__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.pick-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--vcg-bg-card);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.pick-card__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   7. 页脚（保持现有结构）
   ============================================================ */
.footer {
  background: var(--vcg-bg-card);
  border-top: 1px solid var(--vcg-border);
  padding: var(--space-32) var(--space-24);
}

.footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.footer__brand {
  flex: 0 0 auto;
  max-width: 360px;
}

.footer__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--vcg-brand);
  margin-bottom: var(--space-4);
  letter-spacing: 1px;
}

.footer__desc {
  font-size: 12px;
  color: var(--vcg-text-tertiary);
  margin-bottom: var(--space-12);
}

.footer__contact p {
  font-size: 12px;
  color: var(--vcg-text-tertiary);
  line-height: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__legal {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--vcg-border-light);
}

.footer__legal p {
  font-size: 11px;
  color: #bbb;
  line-height: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__links {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-32);
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--vcg-text-primary);
  margin-bottom: var(--space-12);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vcg-brand);
  display: inline-block;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--vcg-text-secondary);
  padding: var(--space-4) 0;
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--vcg-brand);
}

.qrcode-placeholder {
  width: 110px;
  height: 110px;
  background: var(--vcg-bg-card);
  border: 1px solid var(--vcg-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.qrcode-placeholder svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   8. 悬浮按钮（保持现有结构）
   ============================================================ */
.floating-buttons {
  position: fixed;
  right: var(--space-24);
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.floating-btn--consult {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vcg-brand);
  border: none;
  color: var(--vcg-bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
  transition: box-shadow var(--transition-fast);
  gap: 2px;
}

.floating-btn--consult:hover {
  box-shadow: 0 6px 16px rgba(230, 0, 18, 0.4);
}

.consult-icon {
  font-size: 18px;
  line-height: 1;
}

.consult-text {
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.floating-btn--top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vcg-bg-card);
  border: 1px solid var(--vcg-border);
  color: var(--vcg-text-tertiary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.floating-btn--top:hover {
  background: var(--vcg-bg-hover);
  color: var(--vcg-text-primary);
}

/* ============================================================
   9. 动效关键帧
   ============================================================ */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   10. 响应式断点
   ============================================================ */

/* >= 1440px: 5 列瀑布流（默认） */

/* 1024px - 1439px: 4 列瀑布流 */
@media (max-width: 1439px) {
  .gallery__waterfall {
    columns: 4;
  }
}

/* 768px - 1023px: 3 列瀑布流，搜索框自适应 */
@media (max-width: 1023px) {
  .gallery__waterfall {
    columns: 3;
  }

  .hero__search {
    height: auto;
    flex-wrap: wrap;
  }

  .home__search-type {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--vcg-border);
    justify-content: center;
    padding: var(--space-4);
  }

  .home__search-submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .editor-picks__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-32);
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
}

/* < 768px: 2 列瀑布流，汉堡菜单 */
@media (max-width: 767px) {
  .gallery__waterfall {
    columns: 2;
  }

  /* 汉堡菜单 + 侧滑导航 */
  .header__menu-btn {
    display: flex !important;
  }

  .header__nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    background: var(--vcg-bg-primary, #FAFAF8);
    padding: 60px 20px 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 0;
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__nav .home__nav-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--vcg-border, #eee);
  }

  .header__nav .home__nav-item.active::after {
    bottom: 0;
  }

  /* Hero 缩小 */
  .hero {
    min-height: 280px;
    padding: calc(var(--header-height) + var(--space-24)) var(--space-16) var(--space-24);
  }

  .hero__title {
    font-size: 20px;
  }

  .hero__content {
    max-width: 100%;
  }

  /* 分类 Tab 可滚动 */
  .category-tabs__inner {
    gap: var(--space-16);
    padding: 0 var(--space-8);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-tabs__inner::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    font-size: 13px;
  }

  /* 热词 */
  .hot-words {
    padding: var(--space-24) var(--space-16);
  }

  .section-title {
    font-size: 18px;
    margin-bottom: var(--space-12);
  }

  /* 编辑推荐 */
  .editor-picks {
    padding: 0 var(--space-16) var(--space-24);
  }

  .pick-card {
    aspect-ratio: 16 / 9;
  }

  .pick-card__overlay {
    padding: var(--space-12);
  }

  .pick-card__title {
    font-size: 14px;
  }

  .pick-card__subtitle {
    font-size: 12px;
  }

  .pick-card__arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  /* 页脚 */
  .footer {
    padding: var(--space-24) var(--space-16);
  }

  .footer__brand {
    max-width: 100%;
  }

  .qrcode-placeholder {
    width: 90px;
    height: 90px;
  }

  /* 悬浮按钮 */
  .floating-buttons {
    right: var(--space-16);
    bottom: 60px;
  }

  .floating-btn--consult {
    width: 42px;
    height: 42px;
  }

  .consult-icon {
    font-size: 16px;
  }

  .consult-text {
    font-size: 8px;
  }

  .floating-btn--top {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .home__user-name {
    display: none;
  }
}

/* < 480px: 1 列瀑布流 */
@media (max-width: 479px) {
  .gallery__waterfall {
    columns: 1;
  }

  .gallery {
    padding: var(--space-16);
  }

  /* Hero 超小屏 */
  .hero {
    min-height: 220px;
    padding: calc(var(--header-height) + var(--space-16)) var(--space-8) var(--space-16);
  }

  .hero__title {
    font-size: 17px;
    margin-bottom: var(--space-12);
    letter-spacing: 1px;
  }

  .home__search-input {
    font-size: 13px;
    padding: 0 var(--space-8);
  }

  .search-type__select {
    font-size: 13px;
    padding: var(--space-4);
  }

  /* 热词 */
  .section-title {
    font-size: 16px;
    margin-bottom: var(--space-8);
  }

  .hot-words {
    padding: var(--space-16) var(--space-8);
  }

  /* 编辑推荐 */
  .editor-picks {
    padding: 0 var(--space-8) var(--space-16);
  }

  .pick-card {
    aspect-ratio: 16 / 10;
  }

  .pick-card__overlay {
    padding: var(--space-8);
  }

  .pick-card__title {
    font-size: 13px;
  }

  .pick-card__subtitle {
    font-size: 11px;
  }

  .pick-card__arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  /* 页脚 */
  .footer {
    padding: var(--space-16) var(--space-8);
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .footer__col h4 {
    font-size: 13px;
  }

  .footer__col a {
    font-size: 12px;
  }

  .footer__desc {
    font-size: 11px;
  }

  .home__logo-text {
    font-size: 18px;
  }

  .home__logo-sub {
    font-size: 10px;
  }

  .home__user-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* 悬浮按钮 */
  .floating-buttons {
    right: var(--space-8);
    bottom: 48px;
    gap: var(--space-4);
  }

  .floating-btn--consult {
    width: 38px;
    height: 38px;
  }

  .consult-icon {
    font-size: 14px;
  }

  .consult-text {
    font-size: 7px;
  }

  .floating-btn--top {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* 空状态 */
  .gallery-empty {
    padding: 48px var(--space-8);
  }

  .gallery-empty__icon {
    font-size: 36px;
  }

  .gallery-empty__text {
    font-size: 14px;
  }
}

/* ============================================================
   11. 无障碍：减少动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
