/* Agreement页面样式 */

.agreement-main {
  min-height: calc(100vh - 300px);
  padding: 40px 0;
  background: var(--section-light);
}

.agreement-header {
  text-align: center;
  margin-bottom: 40px;
}

.agreement-header h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.agreement-header h2 i {
  color: var(--primary);
  margin-right: 10px;
}

.agreement-subtitle {
  color: var(--gray);
  font-size: 1rem;
}

.agreement-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}

.agreement-notice {
  background: #fff3cd;
  border-left: 4px solid var(--warning);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
}

.agreement-notice i {
  font-size: 1.5rem;
  color: var(--warning);
  margin-top: 3px;
}

.agreement-notice h4 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.agreement-notice p {
  color: #856404;
  line-height: 1.6;
  margin: 0;
}

.agreement-content {
  line-height: 1.8;
}

.agreement-content h3 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.agreement-content h3:first-child {
  margin-top: 0;
}

.agreement-content p {
  color: #4a5568;
  margin-bottom: 15px;
  text-align: justify;
}

.agreement-content p strong {
  color: var(--dark);
}

.agreement-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.update-date {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.agreement-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.agreement-actions .btn {
  min-width: 150px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.agreement-actions .btn-secondary {
  background: #e2e8f0;
  color: var(--dark);
}

.agreement-actions .btn-secondary:hover {
  background: #cbd5e0;
}

/* Toast提示 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  animation: toastSlideIn 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: none;
}

.toast.show {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

.toast.warning {
  background: var(--warning);
}

.toast.info {
  background: var(--secondary);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .agreement-header h2 {
    font-size: 1.5rem;
  }
  
  .agreement-card {
    padding: 25px;
  }
  
  .agreement-notice {
    flex-direction: column;
    gap: 10px;
  }
  
  .agreement-content h3 {
    font-size: 1.1rem;
  }
  
  .agreement-actions {
    flex-direction: column;
  }
  
  .agreement-actions .btn {
    width: 100%;
  }
}
