/* 整体布局 */
.review-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 英雄区域 */
.review-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
  position: relative;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-shadow: 
    3px 3px 0 rgba(99, 102, 241, 0.2),
    6px 6px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  font-weight: 500;
}

/* 审核卡片 */
.review-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--card-radius);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.08),
    inset 0 -2px 6px rgba(255, 255, 255, 0.7),
    inset 2px 2px 6px rgba(255, 255, 255, 1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.1),
    inset 0 -2px 6px rgba(255, 255, 255, 0.7),
    inset 2px 2px 6px rgba(255, 255, 255, 1);
}

/* 卡片头部 */
.card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(to right, rgba(99, 102, 241, 0.03), rgba(124, 58, 237, 0.08));
}

.card-header h4 {
  margin: 0;
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h4 i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 操作按钮组样式 */
.actions-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 卡片内容 */
.card-body {
  padding: 1.5rem;
}

/* 信息网格布局 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-label {
  font-weight: 600;
  color: var(--gray-color);
}

.info-value {
  color: var(--dark-color);
  word-break: break-word;
}

.id-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

.type-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

/* 描述框 */
.description-box {
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  border-radius: var(--border-radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.1);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-color);
}

/* 图片网格 */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.image-item {
  position: relative;
}

.image-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  cursor: zoom-in;
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.image-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--gray-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.select-btn {
  color: var(--primary-color);
}

.select-btn.is-selected {
  background: var(--primary-color);
  color: white;
}

.poster-btn {
  color: var(--accent-color);
}

.poster-btn.active {
  background: var(--accent-color);
  color: white;
}

.image-status {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.image-review-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 2;
}

.image-review-actions button {
  flex: 1;
  border-radius: 0;
  padding: 0.5rem;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* 图片状态样式 */
.approved-image {
  border: 3px solid var(--success-color);
}

.rejected-image {
  border: 3px solid var(--accent-color);
}

.selected-image {
  border: 3px solid var(--primary-color);
}

.poster-image {
  border: 3px solid var(--secondary-color);
}

/* 链接样式 */
.link-category-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.link-category-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.link-category-header {
  padding: 1rem 1.25rem;
  background: rgba(99, 102, 241, 0.05);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.link-category-header h5 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.link-category-body {
  padding: 1rem;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.link-item:last-child {
  margin-bottom: 0;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(3px);
}

.link-approved {
  border-left-color: var(--success-color);
}

.link-rejected {
  border-left-color: var(--accent-color);
}

.link-content {
  flex: 1;
  margin-right: 1rem;
}

.link-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.link-url a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-url a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.link-url i {
  color: var(--primary-color);
}

.link-password, .link-note {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-actions {
  display: flex;
  gap: 0.5rem;
}

.link-badge {
  white-space: nowrap;
}

/* 状态徽章 */
.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-approved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-rejected {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-color);
}

.status-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
}

.badge-info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.badge-count {
  font-size: 0.9rem;
  color: var(--gray-color);
  font-weight: 400;
}

/* 按钮栏 */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 自定义按钮 */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-color);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.btn-success {
  background: var(--success-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-accent {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-custom:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* 自定义文本区域 */
.custom-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  outline: none;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 120px;
  resize: vertical;
}

.custom-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.custom-textarea::placeholder {
  color: rgba(99, 102, 241, 0.4);
}

.custom-textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: rgba(243, 244, 246, 0.7);
}

/* 图片放大模态框 */
.large-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

.large-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.large-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-large-img {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  border: none;
  color: var(--accent-color);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.close-large-img:hover {
  transform: rotate(90deg);
  background: var(--accent-color);
  color: white;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-color);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 错误消息 */
.error-message {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.error-message i {
  font-size: 1.2rem;
}

/* 节标题 */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 992px) {
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .link-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .link-actions, .link-badge {
    margin-top: 1rem;
    align-self: flex-end;
  }

  /* 减少内边距提高可用空间 */
  .review-container {
    padding: 1rem;
  }
  
  .review-hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .card-header {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .info-grid {
    gap: 1rem;
  }
  
  /* 操作按钮组样式 */
  .actions-group {
    gap: 0.35rem;
    flex-wrap: nowrap;  /* 在中等屏幕下保持不换行 */
  }
}

@media (max-width: 768px) {
  .review-hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .card-header {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  
  /* 使用更高优先级的选择器确保标题完整显示 */
  .review-card .card-header h4,
  .card-header h4,
  h4 {
    font-size: 1.1rem !important;
    white-space: nowrap !important; /* 恢复不换行显示 */
    overflow: visible !important; 
    text-overflow: clip !important;
    max-width: 95% !important; /* 进一步增大标题显示区域 */
    line-height: 1.3 !important;
    flex-shrink: 1 !important; /* 允许标题区域在需要时收缩 */
  }
  
  /* 针对图片审核和链接审核卡片的特别处理 */
  .review-card:nth-child(2) .card-header h4,
  .review-card:nth-child(3) .card-header h4 {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 1rem !important;
  }
  
  /* 为图标设置固定宽度，确保标题文字对齐 */
  .card-header h4 i {
    width: 1.3rem !important;
    text-align: center !important;
    margin-right: 0.2rem !important;
  }
  
  /* 重新调整按钮容器尺寸，为标题腾出空间 */
  .actions-group {
    width: auto;
    justify-content: flex-end;
    gap: 0.15rem !important;
    flex-wrap: nowrap;
    flex-shrink: 0 !important; /* 禁止按钮组收缩 */
    margin-left: 0.3rem !important; /* 增加与标题的间距 */
  }
  
  /* 确保底部操作栏始终水平布局 */
  .action-bar {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* 特别针对底部审批按钮区域，强制水平布局 */
  .review-card:last-of-type .card-body .action-bar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  /* 移动端按钮仅显示图标，不显示文字 */
  .btn-text {
    display: none !important;
  }
  
  .btn-custom {
    padding: 0.5rem;
    min-width: 38px;
    height: 38px;
    justify-content: center;
    border-radius: 50%;
  }
  
  .btn-custom i {
    font-size: 1.1rem;
    margin-right: 0;
  }
  
  /* 链接审批按钮特殊处理 - 强制一致的样式 */
  .link-approval-btn span,
  .btn-primary span,
  .return-btn span {
    display: none !important;
  }
  
  /* 确保所有按钮样式一致，包括返回和批准按钮 */
  .return-btn,
  .btn-primary {
    padding: 0.5rem;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    width: auto;
  }
}

@media (max-width: 576px) {
  .card-body {
    padding: 0.75rem;
  }
  
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  /* 使用更高优先级的选择器确保标题完整显示 */
  .review-card .card-header h4,
  .card-header h4,
  h4 {
    font-size: 0.9rem !important; /* 更小的字体 */
    max-width: 95% !important; /* 占用更多可用空间 */
    white-space: nowrap !important; /* 确保不换行 */
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.2 !important;
    flex-shrink: 1 !important;
  }
  
  /* 针对图片审核和链接审核卡片的特别处理 */
  .review-card:nth-child(2) .card-header h4,
  .review-card:nth-child(3) .card-header h4 {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 0.85rem !important; /* 极小字体 */
  }
  
  /* 进一步缩小图标尺寸 */
  .card-header h4 i {
    font-size: 0.85rem !important;
    width: 1.1rem !important;
    text-align: center !important;
    margin-right: 0.1rem !important;
  }
  
  /* 优化操作组的按钮间距，更紧凑 */
  .actions-group {
    gap: 0.15rem;
    flex-shrink: 0 !important;
  }
  
  /* 调整按钮大小，更紧凑 */
  .btn-custom {
    padding: 0.35rem;
    min-width: 30px;
    height: 30px;
  }
  
  .btn-custom.btn-sm {
    min-width: 26px;
    height: 26px;
    padding: 0.3rem;
  }
  
  .btn-custom i {
    font-size: 0.9rem;
  }
  
  /* 确保底部操作栏保持水平且有适当间距 */
  .review-card .action-bar {
    gap: 0.5rem;
  }
  
  /* 确保带有徽章的按钮能正常显示 */
  .btn-custom .badge-count {
    display: inline-flex;
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    align-items: center;
    justify-content: center;
  }
}

/* 特定按钮样式 */
.top-action-bar {
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.return-btn {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.return-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.approval-btn {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  border: none;
  position: relative;
  overflow: hidden;
}

.approval-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.approval-btn:hover::before {
  left: 100%;
}

.approval-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

/* 链接批准按钮样式 */
.link-approval-btn {
  background: linear-gradient(to right, #4f46e5, #6366f1);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  border: none;
}

.link-approval-btn:hover {
  background: linear-gradient(to right, #4338ca, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.link-approval-btn:disabled {
  opacity: 0.6;
  background: linear-gradient(to right, #94a3b8, #cbd5e1);
  transform: none;
  box-shadow: none;
}

/* 批准所有链接按钮样式 */
.link-group-approval-btn {
  background: linear-gradient(to right, #4f46e5, #6366f1);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
}

.link-group-approval-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.link-group-approval-btn:hover::before {
  left: 100%;
}

.link-group-approval-btn:hover {
  background: linear-gradient(to right, #4338ca, #4f46e5);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

/* 图片批准按钮样式 */
.image-approval-btn {
  background: linear-gradient(to right, #4f46e5, #6366f1);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.image-approval-btn:hover {
  background: linear-gradient(to right, #4338ca, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.image-approval-btn:disabled {
  opacity: 0.6;
  background: linear-gradient(to right, #94a3b8, #cbd5e1);
  transform: none;
  box-shadow: none;
}

/* 响应式样式优化 */
@media (max-width: 992px) {
  .review-container {
    padding: 1rem;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .review-title {
    font-size: 1.8rem;
  }
  
  .review-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .review-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .review-sidebar {
    max-width: none;
    grid-row: 2;
  }
  
  .review-form {
    padding: 0;
  }
  
  .info-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .review-header {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .review-title {
    font-size: 1.6rem;
  }
  
  /* 修改卡片标题布局，保持水平布局 */
  .card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .card-header h4 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .card-header-actions {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }
  
  .actions-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* 移动端按钮仅显示图标，隐藏文字 */
  .btn-text {
    display: none;
  }
  
  .btn-custom {
    padding: 0.5rem;
    min-width: 38px;
    height: 38px;
    justify-content: center;
    border-radius: 50%;
  }
  
  .btn-custom i {
    font-size: 1.1rem;
    margin-right: 0;
  }
  
  .btn-custom.btn-sm {
    padding: 0.4rem;
    min-width: 32px;
    height: 32px;
  }
  
  /* 确保按钮图标居中 */
  .btn-custom .spinner {
    margin-right: 0;
  }
  
  .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .btn-group .btn-custom {
    flex: 0 0 auto;
    min-width: auto;
  }
  
  .textarea-wrapper {
    min-height: 120px;
  }
  
  .custom-textarea {
    min-height: 120px;
  }
  
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  /* 改善图片操作按钮在移动端的可用性 */
  .image-actions {
    opacity: 1;
  }
  
  .image-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  /* 优化链接表格在移动端的显示 */
  .links-table {
    overflow-x: auto;
  }
  
  /* 特殊按钮处理 */
  .return-btn {
    padding: 0.5rem;
    min-width: 38px;
    height: 38px;
  }
  
  .link-approval-btn, 
  .link-group-approval-btn,
  .image-approval-btn {
    padding: 0.5rem;
    border-radius: 50%;
  }
}

@media (max-width: 576px) {
  .review-header {
    padding: 1rem;
  }
  
  .review-title {
    font-size: 1.4rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap; /* 确保即使在更小的屏幕上也不换行 */
  }
  
  .card-header h4 {
    font-size: 1rem; /* 更小的字体 */
    max-width: 50%; /* 在更小的屏幕上给按钮留更多空间 */
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  /* 调整表单元素样式 */
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }
  
  /* 调整操作按钮 */
  .btn-custom {
    padding: 0.45rem;
    font-size: 0.85rem;
    min-width: 32px;
    height: 32px;
  }
  
  .btn-custom.btn-sm {
    min-width: 28px;
    height: 28px;
    padding: 0.35rem;
  }
  
  .btn-custom i {
    font-size: 0.9rem;
  }
  
  /* 批量操作按钮优化 */
  .actions-group {
    gap: 0.25rem;
  }
  
  /* 增强表格可读性 */
  .links-table thead {
    display: none;
  }
  
  .links-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  }
  
  .links-table td {
    display: flex;
    padding: 0.5rem 0;
    border: none;
  }
  
  .links-table td::before {
    content: attr(data-label);
    font-weight: 600;
    min-width: 80px;
    margin-right: 0.5rem;
    color: var(--gray-color);
  }
  
  /* 优化图片网格 */
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  
  /* 调整数据项布局 */
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .info-value {
    font-size: 0.95rem;
  }
  
  /* 优化描述框 */
  .description-box {
    font-size: 0.9rem;
    padding: 0.75rem;
    max-height: 150px;
  }
  
  /* 批量操作按钮优化 */
  .batch-operations {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .batch-operations .btn-custom {
    flex: 1;
    min-width: calc(50% - 0.5rem);
  }
  
  /* 图片预览模态框优化 */
  .modal-image-container {
    max-width: 95vw;
  }
  
  .preview-large-image {
    max-height: 80vh;
  }
  
  .image-close-btn {
    right: 0;
    top: -40px;
  }
}

/* 特别针对底部审批按钮区域 */
.review-card:last-of-type .card-body .action-bar {
  flex-direction: row;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .review-hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .card-header {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  
  .card-header h4 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%; /* 增大标题显示区域 */
  }
  
  .actions-group {
    width: auto;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: nowrap;  /* 在移动屏幕下保持不换行 */
  }
  
  /* 确保底部操作栏始终水平布局 */
  .action-bar {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* 特别针对底部审批按钮区域，强制水平布局 */
  .review-card:last-of-type .card-body .action-bar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  
  /* 移动端按钮仅显示图标，不显示文字 */
  .btn-text {
    display: none !important;
  }
  
  .btn-custom {
    padding: 0.5rem;
    min-width: 38px;
    height: 38px;
    justify-content: center;
    border-radius: 50%;
  }
  
  .btn-custom i {
    font-size: 1.1rem;
    margin-right: 0;
  }
  
  /* 链接审批按钮特殊处理 - 强制一致的样式 */
  .link-approval-btn span,
  .btn-primary span,
  .return-btn span {
    display: none !important;
  }
  
  /* 确保所有按钮样式一致，包括返回和批准按钮 */
  .return-btn,
  .btn-primary {
    padding: 0.5rem;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    width: auto;
  }
}