/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* 顶部导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 60px;
  border-bottom: 1px solid #e0e0e0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #9b36fe;
}

.logo-text a {
  text-decoration: none;
  color: #9b36fe;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* 顶部导航菜单 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav .nav-item {
  border: none;
}

.header-nav .nav-link {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 0;
}

.header-nav .nav-item.active .nav-link {
  background-color: #9b36fe;
  color: white;
}

.header-nav .nav-link:hover {
  background-color: #f5f5f5;
}

.header-nav .nav-item.active .nav-link:hover {
  background-color: #9b36fe;
}

/* 主要内容区域 */
.main-content {
  min-height: calc(100vh - 60px);
  padding: 20px;
  padding-bottom: 40px;
  max-width: 1399px;
  margin: 60px auto 0;
  transition: margin-left 0.3s ease;
}

/* 页面内容 */
.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

.hero-image {
  position: relative;
  height: 450px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/safety.png') center/100% 100% no-repeat;
  opacity: 1;
}

.hero-title {
  color: #333;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* 内容文本样式 */
.content-text {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  border: 1px solid #e0e0e0;
}

.content-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: #333;
  border-left: 4px solid #9b36fe;
  padding-left: 15px;
}

.content-text h3:first-child {
  margin-top: 0;
}

.content-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: #333;
  border-left: 3px solid #9b36fe;
  padding-left: 12px;
}

.content-text p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.content-text strong {
  color: #333;
  font-weight: 600;
}

.content-text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.content-text li {
  margin-bottom: 8px;
  color: #333;
}

/* 指南导航样式 */
.guidelines-nav {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
}

.guidelines-nav h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.guidelines-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.guidelines-list li {
  margin-bottom: 0;
}

.guidelines-list a {
  color: #9b36fe;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.guidelines-list a:hover {
  color: #9b36fe;
  background-color: #f5f5f5;
  transform: translateX(5px);
}

/* 指南内容样式 */
.guidelines-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.guideline-section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.guideline-section:last-child {
  margin-bottom: 0;
}

.guideline-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #9b36fe;
  padding-left: 15px;
}

.guideline-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  color: #333;
  border-left: 3px solid #9b36fe;
  padding-left: 12px;
}

.guideline-section p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
}

.guideline-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.guideline-section li {
  margin-bottom: 8px;
  color: #333;
  line-height: 1.6;
}

/* 右下角问询按钮 */
.feedback-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #9b36fe;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(95, 11, 134, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.feedback-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(95, 11, 134, 0.4);
}

.feedback-fab svg {
  width: 24px;
  height: 24px;
}

/* 问卷弹框 */
.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.feedback-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  border: 1px solid #e0e0e0;
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.feedback-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.feedback-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  transition: color 0.3s ease;
}

.feedback-modal-close:hover {
  color: #333;
}

.feedback-modal-body {
  padding: 30px;
}

.feedback-modal-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 反馈表单样式 */
.feedback-form-container {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.feedback-intro {
  margin-bottom: 30px;
  text-align: center;
}

.feedback-intro h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.feedback-intro p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.required {
  color: #ef4444;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
  color: #333;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #9b36fe;
  box-shadow: 0 0 0 3px rgba(95, 11, 134, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.form-checkbox input[type='checkbox'] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #9b36fe;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.submit-btn,
.reset-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.submit-btn {
  background: #9b36fe;
  color: white;
}

.submit-btn:hover {
  background: #9b36fe;
  transform: translateY(-2px);
}

.reset-btn {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
}

.reset-btn:hover {
  background: #e8e8e8;
  color: #333;
}

/* 成功提示模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
  border: 1px solid #e0e0e0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.modal-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.modal-btn {
  padding: 12px 30px;
  background: #9b36fe;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: #9b36fe;
  transform: translateY(-2px);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 简化底部栏样式 */
.footer {
  background: #f8f8f8;
  color: #333;
  padding: 30px 0;
  margin-top: 40px;
  transition: margin-left 0.3s ease;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #9b36fe;
}

.footer-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  max-width: 300px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: #666;
  text-decoration: underline;
  font-size: 12px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #9b36fe;
}

.app-download {
  display: inline-block;
  transition: transform 0.3s ease;
}

.app-download:hover {
  transform: scale(1.05);
}

.google-play-badge {
  height: 40px;
  width: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .header-nav.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .header-nav .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .header-nav .nav-item {
    border-bottom: 1px solid #e0e0e0;
  }

  .header-nav .nav-item:last-child {
    border-bottom: none;
  }

  .header-nav .nav-link {
    padding: 15px 20px;
    text-align: center;
    border-radius: 0;
  }

  .header-content {
    padding: 0 15px;
    position: relative;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    order: 1;
    flex-shrink: 0;
  }

  .header-title {
    order: 2;
    font-size: 16px;
    flex: 1;
    text-align: center;
    margin: 0 10px;
  }

  .logo {
    order: 3;
    flex-shrink: 0;
  }

  .main-content {
    padding: 15px;
    margin-top: 60px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-image {
    height: 150px;
  }

  .content-text,
  .guidelines-nav,
  .guidelines-content,
  .feedback-form-container {
    padding: 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .guidelines-list {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .reset-btn {
    width: 100%;
  }

  .feedback-modal-content {
    width: 90%;
    margin: 0 20px;
    max-height: 80vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: translateY(100%);
    animation: slideUp 0.3s ease;
    overflow-y: auto;
  }

  .feedback-modal.show .feedback-modal-content {
    transform: translateY(0);
  }

  .feedback-modal-body {
    max-height: calc(80vh - 120px);
    overflow-y: auto;
    padding: 20px;
  }

  .feedback-modal-header {
    padding: 15px 20px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
  }

  .feedback-fab {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 10px;
  }

  .footer-description {
    max-width: none;
  }

  .footer-links {
    justify-content: center;
    gap: 15px;
  }

  .footer-links .app-download {
    order: -1;
  }
}

@media (min-width: 769px) {
  .main-content {
    padding: 30px;
    padding-bottom: 40px;
  }

  .footer {
    margin-left: 0;
    padding: 40px 0;
    margin-top: 40px;
  }
}

/* 移动端弹框动画 */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* 页面内容动画 */
.page-content.active {
  animation: fadeIn 0.5s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #9b36fe;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9b36fe;
}

/* 特定页面的英雄图像 */
#security-trust .hero-image::before {
  background: url('img/safety.png') center/100% 100% no-repeat;
}

#community-guidelines .hero-image::before {
  background: url('img/community.png') center/100% 100% no-repeat;
}

#minor-protection .hero-image::before {
  background: url('img/child.png') center bottom/100% 100% no-repeat;
}
