/* 免责声明弹窗样式 */
.disclaimer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.disclaimer-content {
  background-color: var(--bg-color, #fff);
  color: var(--text-color, #333);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.disclaimer-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color, #3498db);
  color: white;
  text-align: center;
}

.disclaimer-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.disclaimer-body {
  padding: 0;
  flex: 1;
  overflow: hidden;
}

.disclaimer-scroll {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.disclaimer-subtitle {
  font-style: italic;
  color: var(--muted-color, #666);
  text-align: center;
  margin-top: 0;
}

.disclaimer-section {
  margin-bottom: 20px;
}

.disclaimer-section h4 {
  color: var(--primary-color, #3498db);
  margin-bottom: 10px;
  font-weight: 600;
}

.disclaimer-section p {
  margin: 8px 0;
  line-height: 1.6;
  text-align: justify;
}

.disclaimer-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  background-color: rgba(0, 0, 0, 0.03);
}

.disclaimer-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.agree-btn {
  background-color: var(--primary-color, #3498db);
  color: white;
}

.agree-btn:hover {
  background-color: var(--primary-dark, #2980b9);
}

.disagree-btn {
  background-color: #e74c3c;
  color: white;
}

.disagree-btn:hover {
  background-color: #c0392b;
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
  .disclaimer-content {
    background-color: var(--bg-color, #222);
    color: var(--text-color, #eee);
  }
  
  .disclaimer-subtitle {
    color: var(--muted-color, #aaa);
  }
  
  .disclaimer-footer {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* 适配移动设备 */
@media (max-width: 768px) {
  .disclaimer-content {
    width: 95%;
  }
  
  .disclaimer-scroll {
    height: 350px;
  }
  
  .disclaimer-header h3 {
    font-size: 1.2rem;
  }
  
  .disclaimer-section h4 {
    font-size: 1.1rem;
  }
  
  .disclaimer-section p {
    font-size: 0.95rem;
  }
  
  .disclaimer-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}