﻿    .banner {
      max-width: 800px;
      margin: 0 auto;
      padding: 12px 16px 0;
      position: relative;
      animation: bannerFadeIn 0.5s ease both;
    }
    @keyframes bannerFadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (max-width: 640px) {
      .banner { padding: 8px 12px 0; }
    }
    .banner-track {
      position: relative;
      width: 100%;
      min-height: 140px;
      max-height: 50vh;
      height: 260px; /* JS 加载前默认值 */
      border-radius: 12px;
      overflow: hidden;
      background: #f3f4f6;
      box-shadow: 0 2px 16px rgba(0,0,0,0.06);
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
      touch-action: pan-y;
      transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    @media (max-width: 640px) {
      .banner-track {
        min-height: 110px;
        max-height: 40vh;
        height: 180px;
        border-radius: 10px;
      }
    }
    .banner-track:active { cursor: grabbing; }
    @media (max-width: 640px) {
      .banner-track { border-radius: 10px; }
    }
    .banner-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: translateX(0);
      transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      pointer-events: none;
      z-index: 1;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    .banner-slide.active {
      opacity: 1;
      transform: translateX(0);
      pointer-events: auto;
      z-index: 2;
      will-change: opacity, transform;
    }
    /* ===== 左右弹动切换动画 ===== */
    /* 新图从同侧弹性滑入（贝塞尔曲线 y>1 产生回弹） */
    .banner-slide.slide-in-right {
      animation: bannerSlideInRight 0.45s cubic-bezier(0.22, 1.35, 0.36, 1) both;
    }
    .banner-slide.slide-in-left {
      animation: bannerSlideInLeft 0.45s cubic-bezier(0.22, 1.35, 0.36, 1) both;
    }
    /* 旧图向另一侧让位滑出 */
    .banner-slide.slide-out-left {
      animation: bannerSlideOutLeft 0.4s ease both;
    }
    .banner-slide.slide-out-right {
      animation: bannerSlideOutRight 0.4s ease both;
    }
    @keyframes bannerSlideInRight {
      from { opacity: 0; transform: translateX(55%); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes bannerSlideInLeft {
      from { opacity: 0; transform: translateX(-55%); }
      to { opacity: 1; transform: translateX(0); }
    }
    @keyframes bannerSlideOutLeft {
      from { opacity: 1; transform: translateX(0); }
      to { opacity: 0; transform: translateX(-35%); }
    }
    @keyframes bannerSlideOutRight {
      from { opacity: 1; transform: translateX(0); }
      to { opacity: 0; transform: translateX(35%); }
    }
    .banner-slide.active[data-url]:hover { cursor: pointer; }
    .banner-slide.active[data-url]:hover img {
      transform: scale(1.02);
    }
    .banner-slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    }
    /* ===== 点击涟漪动画 ===== */
    .banner-click-ripple {
      position: absolute;
      border-radius: 50%;
      background: rgba(255,255,255,0.35);
      animation: bannerRippleSpread 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
      pointer-events: none;
      z-index: 5;
    }
    @keyframes bannerRippleSpread {
      0% { transform: scale(0); opacity: 0.8; }
      100% { transform: scale(1.8); opacity: 0; }
    }
    /* ===== 指示器圆点 ===== */
    .banner-dots {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 10;
    }
    .banner-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      border: none;
      cursor: pointer;
      padding: 0;
      transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
      outline: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      position: relative;
      overflow: visible;
    }
    .banner-dot.active {
      width: 24px;
      border-radius: 4px;
      background: #fff;
      box-shadow: 0 2px 12px rgba(255,255,255,0.4), 0 0 0 3px rgba(255,255,255,0.2);
      animation: dotActivate 0.4s cubic-bezier(0.22,1,0.36,1);
    }
    @keyframes dotActivate {
      0% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
      50% { box-shadow: 0 0 0 8px rgba(255,255,255,0.25); }
      100% { box-shadow: 0 2px 12px rgba(255,255,255,0.4), 0 0 0 3px rgba(255,255,255,0.2); }
    }
    .banner-dot:hover {
      background: rgba(255,255,255,0.8);
      transform: scale(1.2);
    }
    .banner-dot:active {
      background: #fff;
      transform: scale(0.85);
      transition: transform 0.1s ease;
    }
    @media (max-width: 640px) {
      .banner-dots { bottom: 8px; gap: 6px; }
      .banner-dot { width: 6px; height: 6px; }
      .banner-dot.active { width: 18px; border-radius: 3px; }
    }

    /* ===== 左右箭头 ===== */
    .banner-arrow {
      position: absolute;
      top: 50%;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.2);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      z-index: 20; /* 高于图片层，保证点击切换时不会点到图片 */
      opacity: 0.35;
      pointer-events: auto;
      touch-action: manipulation;
      transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
      outline: none;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-select: none;
    }
    .banner-arrow:hover,
    .banner-arrow:focus-visible {
      opacity: 1;
      background: rgba(255,255,255,0.25);
      border-color: rgba(255,255,255,0.4);
      box-shadow: 0 8px 24px rgba(0,0,0,0.18);
      transform: translateY(-50%) scale(1.08);
    }
    .banner-arrow:active {
      transform: translateY(-50%) scale(0.94);
      transition: transform 0.15s ease;
    }
    .banner-arrow svg {
      width: 16px;
      height: 16px;
      filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
      transition: transform 0.3s ease;
    }
    .banner-arrow:hover svg {
      transform: scale(1.1);
    }
    /* 按压反馈 */
    .banner-arrow.pressed {
      background: rgba(255,255,255,0.35) !important;
      border-color: rgba(255,255,255,0.6) !important;
      box-shadow: 0 0 0 8px rgba(255,255,255,0.06) !important;
      transform: translateY(-50%) scale(0.92) !important;
      transition: none !important;
    }
    .banner-arrow.pressed::after {
      content: '';
      position: absolute;
      inset: -6px;
      border-radius: 16px;
      border: 2px solid rgba(255,255,255,0.4);
      opacity: 0;
      animation: arrowRipple 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
    }
    @keyframes arrowRipple {
      0% { opacity: 0.8; transform: scale(0.8); }
      100% { opacity: 0; transform: scale(1.4); }
    }
    .banner-arrow.prev {
      left: 8px;
      transform: translateY(-50%);
    }
    .banner-arrow.prev:hover,
    .banner-arrow.prev:focus-visible {
      transform: translateY(-50%) scale(1.08);
    }
    .banner-arrow.prev:active,
    .banner-arrow.prev.pressed {
      transform: translateY(-50%) scale(0.92);
    }
    .banner-arrow.next {
      right: 8px;
      transform: translateY(-50%);
    }
    .banner-arrow.next:hover,
    .banner-arrow.next:focus-visible {
      transform: translateY(-50%) scale(1.08);
    }
    .banner-arrow.next:active,
    .banner-arrow.next.pressed {
      transform: translateY(-50%) scale(0.92);
    }

    @media (max-width: 640px) {
      .banner-arrow {
        width: 36px; height: 36px;
        border-radius: 10px;
        background: rgba(0,0,0,0.25);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255,255,255,0.15);
        opacity: 0.5;
      }
      .banner-arrow.prev { left: 4px; }
      .banner-arrow.next { right: 4px; }
      .banner-arrow svg { width: 15px; height: 15px; }
      .banner-arrow:hover { opacity: 1; background: rgba(0,0,0,0.45); }
      .banner-arrow.pressed {
        background: rgba(255,255,255,0.25) !important;
        transform: translateY(-50%) scale(0.9) !important;
      }
    }



    /* ===== 帖子列表 ===== */
