/* 重置和基础样式 */
* {
  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: #e1e5e9;
  background-color: #0a0a0a;
}

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

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 3px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: #e1e5e9;
  transition: all 0.3s ease;
}

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

.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: #ff7b27;
}

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

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #1a1a1a;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid #333;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #333;
  background: #0f0f0f;
}

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

.close-menu {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #a1a1aa;
  padding: 5px;
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-list {
  list-style: none;
}

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

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

.nav-item.active .nav-link {
  background-color: #ff7b27;
  color: white;
}

.nav-link:hover {
  background-color: #2a2a2a;
}

.nav-item.active .nav-link:hover {
  background-color: #ff7b27;
}

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

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

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

/* 英雄区域 */
.hero-section {
  margin-bottom: 40px;
}

.hero-image {
  position: relative;
  height: 300px;
  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/cover;
  opacity: 1;
}

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

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

.content-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 15px 0;
  color: #e1e5e9;
  border-left: 4px solid #ff7b27;
  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: #d1d5db;
  border-left: 3px solid #4b5563;
  padding-left: 12px;
}

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

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

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

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

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

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

.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: #ff7b27;
  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: #ff7b27;
  background-color: #2a2a2a;
  transform: translateX(5px);
}

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

.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: #e1e5e9;
  border-left: 4px solid #ff7b27;
  padding-left: 15px;
}

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

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

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

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

/* 内容卡片 */
.content-section {
  margin-bottom: 40px;
}

.content-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #333;
}

.content-card:hover {
  transform: translateY(-5px);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 30px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #e1e5e9;
}

.card-content p {
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 20px;
}

.learn-more {
  color: #ff7b27;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #ff7b27;
}

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

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

#minor-protection .hero-image::before {
  background: url('img/child.png') center/cover;
}

#feedback .hero-image::before {
  background: url('img/safety.png') center/cover;
}

/* 内容样式 */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #e1e5e9;
}

.intro-text {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  border: 1px solid #333;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #d1d5db;
}

/* 安全提示 */
.tips-section {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.tip-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.tip-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tip-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e1e5e9;
}

.tip-item p {
  color: #a1a1aa;
  line-height: 1.6;
}

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

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

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

.feedback-intro p {
  font-size: 16px;
  color: #a1a1aa;
  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: #e1e5e9;
  font-size: 14px;
}

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

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ff7b27;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 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: #e1e5e9;
}

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

.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: #ff7b27;
  color: white;
}

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

.reset-btn {
  background: #2a2a2a;
  color: #a1a1aa;
  border: 2px solid #4b5563;
}

.reset-btn:hover {
  background: #374151;
  color: #e1e5e9;
}

/* 模态框样式 */
.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: #1a1a1a;
  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 #333;
}

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

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

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

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

.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: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 10px;
}

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

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

.modal-btn:hover {
  background: #ff7b27;
  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: #0f0f0f;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
  transition: margin-left 0.3s ease;
  border-top: 1px solid #333;
}

.footer-content {
  max-width: 1500px;
  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: #ff7b27;
}

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

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

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

.footer-link:hover {
  color: white;
}

.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) {
  .header-content {
    padding: 0 15px;
  }

  .header-title {
    font-size: 16px;
  }

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

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

  .hero-image {
    height: 200px;
  }

  .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%;
  }

  .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) {
  .sidebar {
    left: 0;
    width: 250px;
  }

  .sidebar.closed {
    left: -250px;
  }

  .main-content {
    margin-left: 250px;
    padding: 30px;
    padding-bottom: 40px;
  }

  .main-content.sidebar-closed {
    margin-left: 0;
  }

  .footer {
    margin-left: 250px;
  }

  .footer.sidebar-closed {
    margin-left: 0;
  }

  .header-title {
    margin-left: 0;
  }

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

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content.active {
  animation: fadeIn 0.5s ease;
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #ff7b27;
}
