/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

img {
  max-width: 100%;
}

a {
  color: #c93838;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #a02d2d;
}

a:focus-visible {
  outline: 3px solid #c93838;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: -4rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #1a3d0a;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #2d5016 0%, #1a3d0a 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem) 1rem;
}

section {
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d5016;
}

.intro p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Features list */
.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  line-height: 1.6;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c93838;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Download section */
.download {
  text-align: center;
}

.store-buttons {
  margin: 1.5rem 0;
}

.store-button {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background 0.2s;
  text-align: center;
}

.store-button:hover {
  background: #333;
  color: #fff;
}

.store-button:focus-visible {
  outline-color: #fff;
}

.store-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

.store-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Support section */
.support {
  text-align: center;
}

/* Page header for sub-pages */
.page-header {
  background: linear-gradient(135deg, #2d5016 0%, #1a3d0a 100%);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  color: #fff;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.back-link:hover {
  opacity: 1;
  color: #fff;
}

.page-header h1 {
  font-size: 2rem;
}

/* Legal content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.update-time {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2d5016;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Support content */
.support-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  text-align: center;
}

.email {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.faq-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2d5016;
}

.faq-item p {
  line-height: 1.6;
}

.links-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.links-section ul {
  list-style: none;
  padding: 0;
}

.links-section li {
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  background: #2d5016;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #fff;
  margin: 0 1rem;
  opacity: 0.9;
}

.footer-nav a:hover {
  opacity: 1;
  color: #fff;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  section {
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .footer-nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
