/* Material Design 分页样式 - 针对实际HTML结构 */
.material-pagination-wrapper {
  margin: 40px 0;
  padding: 20px 0;
  font-family: 'Roboto', 'Noto Sans SC', -apple-system, sans-serif;
}

.material-pagination-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
}

.material-pagination-wrapper tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
}

.material-pagination-wrapper td {
  padding: 0;
  vertical-align: middle;
  border: none;
}

/* 左侧导航区域 */
.material-pagination-wrapper td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Material Design 导航按钮 */
.material-pagination-wrapper td:first-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 20px;
  background: linear-gradient(145deg, #6200ea, #3700b3);
  color: white !important;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 3px 5px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

/* 涟漪效果 */
.material-pagination-wrapper td:first-child a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: transform 0.6s, opacity 0.3s;
}

.material-pagination-wrapper td:first-child a:hover::after {
  transform: translate(-50%, -50%) scale(30);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

/* 悬停状态 */
.material-pagination-wrapper td:first-child a:hover {
  background: linear-gradient(145deg, #3700b3, #5600e8);
  box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.14),
    0 1px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.material-pagination-wrapper td:first-child a:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

/* 禁用状态文本（下一页、末页） */
.material-pagination-wrapper td:first-child {
  color: #666;
}

.material-pagination-wrapper td:first-child a + span,
.material-pagination-wrapper td:first-child span {
  color: #9e9e9e;
  margin: 0 4px;
  font-size: 14px;
}

/* 移除分隔线 */
.material-pagination-wrapper td:first-child a + a::before,
.material-pagination-wrapper td:first-child a + span::before {
  content: "";
  display: none;
}

/* 右侧信息区域 */
.material-pagination-wrapper td:last-child {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f5f5f5;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 当前页信息 */
.material-pagination-wrapper td:last-child span {
  color: #424242;
  font-weight: 500;
  font-size: 14px;
  background: white;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* 页码导航 */
.material-pagination-wrapper td:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: #6200ea;
  text-decoration: none;
  border-radius: 18px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e0e0e0;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  margin: 0 2px;
  padding: 0;
}

/* 当前页高亮 */
.material-pagination-wrapper td:last-child a[href="javascript:void(0);"] {
  background: #6200ea;
  color: white;
  border-color: #6200ea;
  box-shadow: 0 2px 4px rgba(98, 0, 234, 0.3);
  cursor: default;
}

/* 页码悬停效果 */
.material-pagination-wrapper td:last-child a:hover:not([href="javascript:void(0);"]) {
  background: #f3e5f5;
  border-color: #6200ea;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(98, 0, 234, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .material-pagination-wrapper tr {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .material-pagination-wrapper td:first-child,
  .material-pagination-wrapper td:last-child {
    width: 100%;
    justify-content: center;
  }
  
  .material-pagination-wrapper td:first-child {
    gap: 6px;
  }
  
  .material-pagination-wrapper td:first-child a {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }
  
  .material-pagination-wrapper td:last-child {
    padding: 10px 16px;
  }
  
  .material-pagination-wrapper td:last-child a {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  .material-pagination-wrapper td:first-child a {
    background: linear-gradient(145deg, #bb86fc, #985eff);
  }
  
  .material-pagination-wrapper td:first-child a:hover {
    background: linear-gradient(145deg, #985eff, #bb86fc);
  }
  
  .material-pagination-wrapper td:last-child {
    background: #2d2d2d;
  }
  
  .material-pagination-wrapper td:last-child span {
    background: #1e1e1e;
    color: #e0e0e0;
  }
  
  .material-pagination-wrapper td:last-child a {
    background: #2d2d2d;
    color: #bb86fc;
    border-color: #444;
  }
  
  .material-pagination-wrapper td:last-child a[href="javascript:void(0);"] {
    background: #bb86fc;
    color: #121212;
    border-color: #bb86fc;
  }
  
  .material-pagination-wrapper td:last-child a:hover:not([href="javascript:void(0);"]) {
    background: #3700b3;
    color: white;
  }
}

/* 动画效果 */
@keyframes materialPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(98, 0, 234, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(98, 0, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(98, 0, 234, 0);
  }
}

.material-pagination-wrapper td:last-child a[href="javascript:void(0);"] {
  animation: materialPulse 2s infinite;
}

/* 焦点样式 */
.material-pagination-wrapper a:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(98, 0, 234, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.2);
}