:root {
  --primary-color: #000;
  --bg-color: #fff;
  --text-color: #333;
  --text-light: #666;
  --link-color: #007aff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  /* 适配刘海屏、灵动岛和底部安全区 */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.main-logo {
  width: 240px;
  height: 240px;
  border-radius: 50px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.main-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 18px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
  max-width: 320px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.download-btn:hover {
  opacity: 0.9;
}

.download-btn:active {
  transform: scale(0.98);
}

.footer {
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 20px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer .contact-link {
  color: var(--link-color);
}

.footer p {
  margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .main-logo {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    margin-bottom: 30px;
  }
  
  .main-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .download-btn {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 30px; /* 移动端圆角更大 */
  }
  
  .footer {
    font-size: 12px;
  }
}

/* 子页面通用样式 */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.page-content {
  line-height: 1.8;
  color: #444;
}

.page-content h2 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: #222;
}

.page-content h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 16px 0 8px;
  color: #333;
}

.page-content p {
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--link-color);
  text-decoration: none;
  font-size: 16px;
}

.back-link:hover {
  text-decoration: underline;
}
