/* ============================================================
 * global-exposure-platform / static/css/custom.css
 * 补充 Tailwind 无法覆盖的样式 + 动画 + 响应式调整
 * ============================================================ */

/* ---------- 自定义颜色 ---------- */
.bg-gray-750 {
  background-color: rgba(55, 65, 81, 0.5);
}

/* ---------- 二维码出现动画 ---------- */
@keyframes qrcodeFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
#qrcode-img {
  animation: qrcodeFadeIn 0.4s ease-out;
}

/* ---------- 进度条动画 ---------- */
@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}
#dist-progress-bar,
#ov-bar {
  animation: progressPulse 2s ease-in-out infinite;
}

/* ---------- Flash 消息淡出 ---------- */
.flash-item {
  transition: opacity 0.5s ease;
}

/* ---------- FAQ 折叠动画 ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer:not(.hidden) {
  max-height: 500px;
  padding-bottom: 1rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

/* ---------- 产品项进入动画 ---------- */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-item {
  animation: slideIn 0.25s ease-out;
}

/* ---------- 卡片悬浮微动 ---------- */
section .bg-gray-800:hover {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.1);
}

/* ---------- 表格行悬浮 ---------- */
tbody tr:hover {
  background-color: rgba(55, 65, 81, 0.35);
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 640px) {
  /* 小屏幕表格使用更紧凑间距 */
  table th, table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
  }

  /* 进度条更细 */
  #dist-progress-bar,
  #ov-bar {
    height: 0.375rem;
  }
}

/* ---------- 表单 input 聚焦 ---------- */
.form-input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}

/* ---------- 按钮 disabled ---------- */
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ---------- 滚动条美化（Webkit） ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #1f2937;
}
::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* ---------- 选中文字颜色 ---------- */
::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #fff;
}
