/* 摄影与视频评审系统 - 现代明亮极简画廊级设计样式表 */

:root {
  --color-primary: #2563eb;
  --color-pass: #059669;
  --color-pending: #d97706;
  --color-reject: #dc2626;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* 浅色精致滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 图片骨架加载微光动画 */
.img-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 作品卡片与微交互 */
.work-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.08), 0 4px 8px -2px rgba(37, 99, 235, 0.04);
}

.work-card.voted-pass {
  border-color: #10b981;
  box-shadow: 0 0 0 1.5px #10b981, 0 8px 16px -2px rgba(16, 185, 129, 0.12);
  background: #ffffff;
}
.work-card.voted-pending {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1.5px #f59e0b, 0 8px 16px -2px rgba(245, 158, 11, 0.12);
  background: #ffffff;
}
.work-card.voted-reject {
  border-color: #f43f5e;
  box-shadow: 0 0 0 1.5px #f43f5e, 0 8px 16px -2px rgba(244, 63, 94, 0.12);
  background: #ffffff;
}

/* 按钮微交互样式 */
.btn-vote-pass {
  background: #f0fdf4;
  color: #047857;
  border: 1px solid #bbf7d0;
  transition: all 0.15s ease;
}
.btn-vote-pass:hover {
  background: #dcfce7;
  border-color: #86efac;
}
.btn-vote-pass.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.32);
}

.btn-vote-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  transition: all 0.15s ease;
}
.btn-vote-pending:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}
.btn-vote-pending.active {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.32);
}

.btn-vote-reject {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  transition: all 0.15s ease;
}
.btn-vote-reject:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}
.btn-vote-reject.active {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.32);
}

/* 弹窗背景模糊遮罩 */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

/* 键盘按键小徽章 */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ==================== 现代表单组件与控件美化 (彻底解决原生变形问题) ==================== */

/* 1. 数字输入框清空原生箭头，消除挤压变形 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* 2. 现代通用输入框 */
.ui-input {
  display: inline-flex;
  align-items: center;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}
.ui-input:hover:not(:disabled) {
  border-color: #94a3b8;
  background-color: #ffffff;
}
.ui-input:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}
.ui-input::placeholder {
  color: #94a3b8;
}
.ui-input:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.ui-input-sm {
  height: 2.125rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
}

/* 紧凑型轮次数字微调输入框 */
.ui-input-number-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.125rem;
  width: 3.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
  text-align: center;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  outline: none;
}
.ui-input-number-compact:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}
.ui-input-number-compact:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* 3. 极简现代下拉选择框 (去除系统默认小方块，采用精致嵌入式箭头) */
.ui-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0.5rem 2.25rem 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #0f172a;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.65rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  cursor: pointer;
  outline: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.ui-select:hover:not(:disabled) {
  border-color: #94a3b8;
}
.ui-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}
.ui-select:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.ui-select-sm {
  height: 2.125rem;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  background-position: right 0.5rem center;
}

/* 4. 精致复选框 (去除系统丑陋小框) */
.ui-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.375rem;
  outline: none;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  background-color: #ffffff;
  position: relative;
}
.ui-checkbox:hover {
  border-color: #94a3b8;
}
.ui-checkbox:checked {
  background-color: #2563eb;
  border-color: #2563eb;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.ui-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
