/* 隐私政策和服务条款弹框样式 */

.privacy-services-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.privacy-services-modal {
  background: white;
  border-radius: 8px;
  width: 75vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.privacy-services-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  border-radius: 8px 8px 0 0;
}

.privacy-services-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.privacy-services-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.privacy-services-modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.privacy-services-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
  line-height: 1.6;
  color: #333;
}

.privacy-services-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
  text-align: right;
}

.privacy-services-modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.privacy-services-modal-btn-secondary {
  background-color: #6c757d;
  color: white;
}

.privacy-services-modal-btn-secondary:hover {
  background-color: #5a6268;
}

/* 隐私政策内容样式 */
.privacy-content {
  font-size: 14px;
  line-height: 1.8;
}

.privacy-intro {
  margin-bottom: 8px;
  text-align: center;
}

.privacy-intro p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

.privacy-special-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.privacy-special-notice h3 {
  font-size: 16px;
  font-weight: 600;
}

.privacy-special-notice p {
  margin: 0;
  font-size: 14px;
}

.privacy-special-notice strong {
  font-weight: 600;
}

.privacy-contact {
  border-left: 4px solid #007bff;
  padding-left: 20px;
  margin-bottom: 12px;
  background-color: #eff6ff;
}

.privacy-contact h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
}

.privacy-contact p {
  font-size: 16px;
}

.privacy-contact ul {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
}

.privacy-contact li {
  margin-bottom: 6px;
}

.privacy-outline {
  margin-bottom: 12px;
}

.privacy-outline h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.privacy-outline ol {
  margin: 0;
  padding-left: 20px;
  color: #555;
  font-size: 14px;
}

.privacy-outline li {
  margin-bottom: 8px;
}

.privacy-outline .outline-link {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.privacy-outline .outline-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.privacy-outline .outline-link:active {
  color: #1e40af;
}

.privacy-section {
  margin-bottom: 16px;
}

.privacy-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2563eb;
  border-bottom: 1px solid #9ca3af;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.privacy-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.privacy-section h5 {
  font-size: 15px;
  font-weight: 600;
  color: #555;
}

.privacy-section p {
  color: #555;
  font-size: 14px;
  text-align: justify;
  margin-bottom: 8px;
}

.privacy-section ul,
.privacy-section ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
  color: #555;
  font-size: 14px;
}

.privacy-section li {
  margin-bottom: 8px;
  text-align: justify;
}

.privacy-section strong {
  color: #333;
  font-weight: 600;
}

/* 服务条款内容样式 */
.terms-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

/* 服务条款头部样式 */
.terms-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e8e8e8;
}

.terms-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.terms-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.terms-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.terms-dates {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.terms-dates span {
  margin: 0 8px;
}

/* 服务条款介绍样式 */
.terms-intro {
  margin-bottom: 24px;
  text-align: justify;
}

.terms-intro p {
  font-size: 16px;
}

.terms-notice {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.terms-notice p {
  line-height: 1.6;
  margin-bottom: 8px;
}

.terms-notice p:last-child {
  margin-bottom: 0;
}

.terms-notice strong {
  font-weight: 700;
}

/* 目录样式 */
.terms-toc {
  margin-bottom: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 20px;
}

.terms-toc h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.terms-toc ol {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.terms-toc li {
  margin-bottom: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.terms-toc li:hover {
  color: #2563eb;
}

.terms-outline-link {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.terms-outline-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.terms-outline-link:active {
  color: #1e40af;
}

/* 服务条款章节样式 */
.terms-section {
    margin-bottom: 8px;
}

.terms-section:last-child {
  border-bottom: none;
}

.terms-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  padding-bottom: 8px;
  border-bottom: 1px solid #9ca3af;
  position: relative;
  margin-bottom: 12px;
}

.terms-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
}

.terms-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.terms-section p {
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 4px;
}

.terms-section ul,
.terms-section ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.8;
}

.terms-section li {
  margin-bottom: 12px;
  text-align: justify;
}

.terms-section strong {
  color: #1e293b;
  font-weight: 600;
}

/* 联系信息样式 */
.terms-contact {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 12px 0;
}

.terms-contact p {
  font-size: 14px;
  color: #1e40af;
}

.terms-contact p:first-child {
  font-weight: 600;
}

.terms-contact p:last-child {
  margin-bottom: 0;
}


/* 滚动条样式 */
.privacy-services-modal-content::-webkit-scrollbar {
  width: 6px;
}

.privacy-services-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.privacy-services-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.privacy-services-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
