/* =========================================================================
   织梦分页样式重置 - 复制到你的模板 CSS 文件
   ========================================================================= */

/* 分页容器：横向 flex 布局 */
.dede_pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 16px;
  list-style: none;
  margin: 0;
}

.dede_pages ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dede_pages li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* 普通页码链接 */
.dede_pages li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid #e8e6dc;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dede_pages li a:hover {
  background: #faf9f5;
  border-color: #d97757;
  color: #d97757;
}

/* 当前页（li.thisclass） */
.dede_pages li.thisclass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: #d97757;
  border: 1px solid #d97757;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.3);
}

/* 首页/上一页/下一页/末页按钮 - 稍微宽一点 */
.dede_pages li a:contains("首页"),
.dede_pages li a:contains("上一页"),
.dede_pages li a:contains("下一页"),
.dede_pages li a:contains("末页") {
  padding: 0 16px;
  font-size: 13px;
}

/* 统计信息文字 */
.dede_pages li:not(:has(a)):not(.thisclass):not(:has(select)) {
  font-size: 13px;
  color: #6b6b6b;
  padding: 0 8px;
}

/* 跳页下拉框 */
.dede_pages li select {
  height: 40px;
  padding: 0 32px 0 12px;
  background: #ffffff;
  border: 1px solid #e8e6dc;
  border-radius: 8px;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.dede_pages li select:hover {
  border-color: #d97757;
}

.dede_pages li select:focus {
  outline: none;
  border-color: #d97757;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

/* =========================================================================
   移动端适配
   ========================================================================= */
@media (max-width: 640px) {
  .dede_pages {
    gap: 4px;
    padding: 24px 12px;
    flex-wrap: wrap;
  }
  
  .dede_pages li a {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
  
  .dede_pages li.thisclass {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
  
  /* 移动端隐藏统计文字，节省空间 */
  .dede_pages li:not(:has(a)):not(.thisclass):not(:has(select)) {
    display: none;
  }
  
  /* 文字按钮改成图标或缩写 */
  .dede_pages li a:contains("首页")::before { content: "«"; }
  .dede_pages li a:contains("上一页")::before { content: "‹"; }
  .dede_pages li a:contains("下一页")::before { content: "›"; }
  .dede_pages li a:contains("末页")::before { content: "»"; }
  
  .dede_pages li a:contains("首页"),
  .dede_pages li a:contains("上一页"),
  .dede_pages li a:contains("下一页"),
  .dede_pages li a:contains("末页") {
    font-size: 0;
    min-width: 36px;
  }
}

/* =========================================================================
   使用说明
   ========================================================================= */
/* 
   1. 把这段 CSS 复制到你的织梦模板 CSS 文件里（通常是 style.css 或 dede.css）
   
   2. 如果分页容器没有 .dede_pages 类，说明你的织梦版本可能用其他类名，
      需要打开网页按 F12 查看实际类名，然后替换上面的 .dede_pages
      
   3. 配色说明：
      - 主色 #d97757 是暖橙色，可以改成你的品牌色
      - 边框 #e8e6dc 是米灰色
      - 背景 #faf9f5 是米白背景
      
   4. 如果还想进一步美化，可以加动效：
   
      .dede_pages li a {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
      }
      .dede_pages li a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
      }
      .dede_pages li a:active {
        transform: translateY(0);
      }
*/
