/* ---------- CSS变量定义 ---------- */
:root {
    /* 品牌色彩 */
    --primary: #DA251E;      /* 峰林阁主红色 */
    --primary-dark: #a0181e;     /* 深红色 */
    --primary-light: #e8b4b7;    /* 浅红色 */
    --gold: #d4a574;             /* 金色/棕色点缀 */
    
    /* 中性色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --bg-gray: #f5f5f5;
    --bg-white: #ffffff;
    
    /* 布局 */
    --pc-max-width: 1200px;
    --mobile-padding: 15px;
    --border-radius: 8px;
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                   "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", 
                   "Microsoft YaHei", sans-serif;
}

/* ---------- 基础重置 ---------- */
* {
     transition: all 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;  /* 字体抗锯齿效果 */
}

/* 在 body 样式中添加 */
body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    min-height: 100vh;  /* 确保 body 至少占满一屏，但可以超出 */
}

/* 确保 html 也允许滚动 */
html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    height: auto;  /* 不要固定高度 */
    overflow-y: auto;  /* 允许垂直滚动 */
}
html body{
  height: 100%;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -moz-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* ---------- 公共布局容器 ---------- */
.container {
    width: 100%;
    max-width: var(--pc-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 公共按钮组件 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* ---------- 卡片组件 ---------- */
.card {
    background: #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #f7f7f7;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-title {
    font-size: 16px;
    color: var(--text-primary);
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

/* ---------- 标签/筛选器组件 ---------- */
.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag.active,
.filter-tag:hover {
    background-color: var(--primary);
    color: white;
}

.filter-tag::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
}




/* ---------- 工具类 ---------- */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.p-2 { padding: 8px; }
.hidden { display: none !important; }

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 二级导航 */
.global-nav-text{
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    /* 隐藏滚动条 */
    scrollbar-width:none;
    background:#fff;
}
.global-nav-text::-webkit-scrollbar{
    display:none;
}
.global-nav-text a{
    flex:0 0 auto;
    padding:10px;
    font-size:16px;
    color:#333;
    white-space:nowrap;
    border-bottom:3px solid transparent;
    transition:0.2s;
}
.global-nav-text a.active{
    color:#007aff;
    border-bottom-color:#007aff;
}
.global-nav-text a:hover{
    color:#007aff;
}
.active a::after{
    content: "";
  position: absolute;
  bottom: 0;       /* 永远贴a的底边 */
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #C10B00;
  border-radius: 1px;
}


    /* hover hover效果（可选） */
    .video-box:hover .play-icon {
      background: rgba(255, 80, 0, 0.8);
    }
.text-two-line {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 只显示 2 行 */
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5; /* 行高要固定 */
  max-height: 3em; /* 2 行 × 1.5 = 3em，和行高严格对应 */
  word-break: break-all; /* 防止长文本不换行 */
}
.text-one-line {
  /* 单行省略核心 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* 可选：基础样式 */
  line-height: 1.5;
}
.hengxian{
    width: 100%;
    height: 1px;
    background: #d4d4d4;
}
 /* 轮播图片容器 */

    .banner-wrap {
      position: relative;
      overflow: hidden;
      width: 100%;
      aspect-ratio: 2 / 1; 
    }
    .banner-list {
      display: flex;
      height: 100%;
      transition: transform 0.6s ease;
    }
    /* 单张banner */
    .banner-item {
      flex-shrink: 0;
      width: 100%;
      height: 100%;
    }
    .banner-item a {
      display: block;
      width: 100%;
      height: 100%;
    }
    .banner-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }


.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}
    
    .banner-btn:hover {
      background: rgba(0,0,0,0.6);
    }

    /* 底部圆点指示器 */
    .banner-dots {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }
    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      cursor: pointer;
    }
    .dot.active {
      background: #fff;
    }

/* 鱼骨外层容器，继承卡片网格布局 */
.skeleton-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
}

/* 单张骨架卡片外壳：圆角、柔和阴影、分层底色 */
.skeleton-card {
  width: calc(25% - 12px);
  min-width: 240px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f7f7f7;
  position: relative;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
}

/* 封面占位：更深一点的灰色，区分层级 */
.skeleton-cover {
  width: 100%;
  height: 120px;
  background-color: #eaeaea;
  /* 轻微底色呼吸渐变辅助质感 */
  animation: skeletonBgBreath 2s ease-in-out infinite alternate;
}

/* 文字区域容器，增加内边距还原真实卡片留白 */
.skeleton-text-wrap {
  padding: 12px 10px;
}

/* 主标题占位条 */
.skeleton-title {
  height: 16px;
  width: 85%;
  border-radius: 4px;
  background-color: #eaeaea;
  margin-bottom: 10px;
  animation: skeletonBgBreath 2s ease-in-out infinite alternate;
}

/* 辅助小字占位（两行，还原真实标题长短不一效果） */
.skeleton-desc-line {
  height: 12px;
  border-radius: 3px;
  background-color: #eaeaea;
  margin-bottom: 8px;
  animation: skeletonBgBreath 2s ease-in-out infinite alternate;
}
.skeleton-desc-line.short {
  width: 60%;
}

/* 流光扫光动画核心，加宽渐变过渡更柔和不刺眼 */
@keyframes skeletonShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
/* 底色缓慢明暗呼吸动画，弱化纯死灰单调感 */
@keyframes skeletonBgBreath {
  0% {
    background-color: #e6e6e6;
  }
  100% {
    background-color: #f0f0f0;
  }
}

/* 流光伪元素：加宽渐变带，柔和高光，不刺眼纯白 */
.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  animation: skeletonShimmer 1.5s infinite linear;
}
 /* ========== 底部加载提示 ========== */
    .load-more {
      grid-column: 1 / -1;
      width: 100%;
      text-align: center;
      padding: 18px 0;
      font-size: 14px;
      color: #888;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .load-spinner {
      width: 16px;
      height: 16px;
      border: 2px solid #eee;
      border-top-color: #e6212a;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* ========== 空状态样式（撑高520px居中） ========== */
    .empty-tip-normal,
    .empty-tip-error {
      grid-column: 1 / -1;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 520px;
      padding: 0 20px;
      box-sizing: border-box;
    }
    .empty-tip-normal {
      color: #999;
      font-size: 15px;
    }
    .empty-tip-error {
      gap: 12px;
    }
    .empty-tip-error p {
      color: #999;
      margin: 0;
    }
    .retry-btn {
      padding: 6px 18px;
      border: 1px solid #e6212a;
      color: #e6212a;
      background: #fff;
      border-radius: 4px;
      cursor: pointer;
    }
    .retry-btn:hover {
      background: #e6212a;
      color: #fff;
    }
    .no-more-tip {
      grid-column: 1 / -1;
      text-align: center;
      padding: 24px 0;
      color: #bbb;
      font-size: 14px;
      min-height: auto;
    }

    /* 兜底图、懒加载占位 */
    .img-lazy-placeholder {
      width: 100%;
      height: 100%;
      background: #eee;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #aaa;
    }
    footer {
      margin-top: 100px;
      /* padding: 30px; */
      background: #f5f5f5;
      text-align: center;
    }
    .play-icon {
      /* 居中核心 */
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);

      padding-left: 5px;

      /* 圆形背景 */
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.5); /* 半透黑底 */

      /* 三角播放符号 */
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .play-icon::after {
      content: "";
      /* CSS绘制三角形 */
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 10px 0 10px 20px;
      border-color: transparent transparent transparent #fff;
    }