/*!****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/components/Toast/toast.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************/
/* Toast动画样式 */

/* 进度条收缩动画 */
@keyframes shrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Toast进入动画 */
@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Toast退出动画 */
@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* Toast悬停效果 */
@keyframes toast-hover {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.02);
  }
}

/* 脉冲效果 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Toast容器样式 */
.toast-container {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

.toast-container > * {
  pointer-events: auto;
}

/* Toast项目样式 */
.toast-item {
  animation: toast-enter 0.3s ease-out forwards;
  will-change: transform, opacity;
}

.toast-item.leaving {
  animation: toast-exit 0.3s ease-in forwards;
}

.toast-item:hover {
  animation: toast-hover 0.2s ease-out forwards;
}

/* 进度条样式 */
.toast-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: width linear;
  border-radius: 2px 2px 0 0;
}

.toast-progress-bar.paused {
  animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 640px) {
  /* 对于居中位置的Toast，在移动端保持居中但调整宽度 */
  .toast-container {
    left: 1rem !important;
    right: 1rem !important;
  }

  /* 对于top-center和bottom-center，保持居中 */
  .toast-container:has(.toast-item) {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 2rem);
    max-width: 400px;
  }

  .toast-item {
    max-width: none;
    width: 100%;
    margin: 0 auto;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .toast-item {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .toast-item,
  .toast-item.leaving,
  .toast-item:hover,
  .toast-progress-bar {
    animation: none;
    transition: none;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .toast-item {
    border: 2px solid;
  }
}

/* 自定义滚动条（如果需要） */
.toast-container::-webkit-scrollbar {
  display: none;
}

.toast-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/components/PolicyModal/styles.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************/
/* PolicyModal 样式 */
.policy-modal .ant-modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.policy-modal .ant-modal-header {
  background: linear-gradient(135deg, #FF6B00 0%, #E55A00 100%);
  border-bottom: none;
  padding: 16px 24px;
}

.policy-modal .ant-modal-title {
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.policy-modal .ant-modal-close {
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.policy-modal .ant-modal-close:hover {
  opacity: 1;
}

.policy-modal .ant-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.policy-modal-content {
  line-height: 1.6;
}

/* 协议内容样式 */
.policy-content {
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4,
.policy-content h5,
.policy-content h6 {
  color: #FF6B00;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.policy-content h1 {
  font-size: 24px;
  border-bottom: 2px solid #FF6B00;
  padding-bottom: 8px;
}

.policy-content h2 {
  font-size: 20px;
}

.policy-content h3 {
  font-size: 18px;
}

.policy-content p {
  margin-bottom: 12px;
  text-align: justify;
}

.policy-content ul,
.policy-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.policy-content li {
  margin-bottom: 6px;
}

.policy-content strong {
  color: #FF6B00;
  font-weight: 600;
}

.policy-content a {
  color: #FF6B00;
  text-decoration: underline;
}

.policy-content a:hover {
  color: #E55A00;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.policy-content table th,
.policy-content table td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}

.policy-content table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #FF6B00;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .policy-modal .ant-modal-body {
    padding: 16px;
    max-height: 60vh;
  }
  
  .policy-content {
    font-size: 13px;
  }
  
  .policy-content h1 {
    font-size: 20px;
  }
  
  .policy-content h2 {
    font-size: 18px;
  }
  
  .policy-content h3 {
    font-size: 16px;
  }
  
  .policy-content ul,
  .policy-content ol {
    padding-left: 20px;
  }
  
  .policy-content table {
    font-size: 12px;
  }
  
  .policy-content table th,
  .policy-content table td {
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .policy-modal .ant-modal-body {
    padding: 12px;
    max-height: 55vh;
  }
  
  .policy-content {
    font-size: 12px;
  }
  
  .policy-content h1 {
    font-size: 18px;
  }
  
  .policy-content h2 {
    font-size: 16px;
  }
  
  .policy-content h3 {
    font-size: 14px;
  }
}

/* 加载状态样式 */
.policy-modal .ant-spin-container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 错误状态样式 */
.policy-modal .error-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.policy-modal .error-state .error-icon {
  font-size: 48px;
  color: #ff4d4f;
  margin-bottom: 16px;
}

/* 空状态和错误状态的通用样式 */
.policy-modal .empty-state,
.policy-modal .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 40px 20px;
}

.policy-modal .empty-state .icon,
.policy-modal .error-state .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.policy-modal .empty-state .message,
.policy-modal .error-state .message {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.policy-modal .empty-state .details,
.policy-modal .error-state .details {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* 滚动条样式 */
.policy-modal .ant-modal-body::-webkit-scrollbar {
  width: 6px;
}

.policy-modal .ant-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.policy-modal .ant-modal-body::-webkit-scrollbar-thumb {
  background: #FF6B00;
  border-radius: 3px;
}

.policy-modal .ant-modal-body::-webkit-scrollbar-thumb:hover {
  background: #E55A00;
}

