/* 全局重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}


/* Logo 尺寸 - 使用 rem 单位 */
.w-logo { width: 14.875rem; }  /* 238px */
.h-logo { height: 4.125rem; }  /* 66px */

/* 原子类定义 - 基于原样式 */

.pc-h-screen{
    min-height: calc(100vh - 300px);
}
/* 尺寸与布局 */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-340 { width: 340px; }
.h-50 { height: 200px; }
.max-w-6xl { max-width: 1440px; }
.m-0-auto { margin: 0 auto; }
.p-4 { padding: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-5 { padding: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.pointer-events-none { pointer-events: none; }

/* 显示与布局 */
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-1 { grid-template-columns: 1fr; }
.gap-6 { gap: 1.5rem; }
.gap-3 { gap: 0.75rem; }

/* 颜色与背景 */
.text-white { color: #fff; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-gray-500 { color: #6b7280; }
.bg-white { background-color: #fff; }
.bg-lime-400 { background-color: #d9ff00; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gradient-custom {
  background: url(/static/images/bg.png);
  background-size: cover;
  background-position: center;
}
.bg-decoration::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(0, 150, 255, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 150, 255, 0.05) 0%,
      transparent 20%
    );
  pointer-events: none;
  z-index: -1;
}

/* 边框与效果 */
.rounded-none { border-radius: 0; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }
.border { border-width: 1px; }
.border-gray-900 { border-color: #111827; }
.border-none { border: none; }

/* 文字 */
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.5rem; }  /* 24px */
.text-base { font-size: 1rem; }   /* 16px */
.text-sm { font-size: 0.9rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-6 { line-height: 1.5; }

/* 交互 */
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.2s ease; }
.hover-bg-lime-300:hover { background-color: #c9ee00; }
.hover-bg-gray-100:hover { background-color: #f3f4f6; }

/* 响应式 */
@media (max-width: 1024px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .w-340 { width: 100%; }
}
@media (max-width: 640px) {
  .sm-grid-cols-1 { grid-template-columns: 1fr; }
  .sm-h-50 { height: 12.5rem; }  /* 200px */
  .sm-p-3 { padding: 0.75rem; }
  .sm-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .sm-px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm-mb-8 { margin-bottom: 1rem; }
  .sm-mb-4 { margin-bottom: 1rem; }
  .sm-gap-4 { gap: 1rem; }
  .sm-gap-2 { gap: 0.5rem; }
  .w-logo { width: 12rem; }  /* 238px */
  .h-logo { height: 3.75rem; }  /* 66px */
  .description{
    min-height: 3rem;
  }
}

/* 自定义弹窗样式 */
.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.toast-overlay.show {
  opacity: 1;
  visibility: visible;
}
.toast {
  background: linear-gradient(135deg, #0a1a3a 0%, #0f2850 100%);
  border: 1px solid rgba(217, 255, 0, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  min-width: 300px;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}
.toast-overlay.show .toast {
  transform: scale(1);
}
.toast-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.toast-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #d9ff00, #a8d800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1a3a;
  font-size: 1.5rem;
  font-weight: bold;
}
.toast-message {
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.toast-link {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 255, 0, 0.3);
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #d9ff00;
  word-break: break-all;
  margin-bottom: 1rem;
}
.toast-success .toast-icon {
  background: linear-gradient(135deg, #d9ff00, #a8d800);
}
.toast-error .toast-icon {
  background: linear-gradient(135deg, #ff4d4d, #cc0000);
}
  .text-lg{font-size: 1.25rem;}
  .text-base{font-size: 1rem;}
}
