:root {
  --primary: #42b983;
  --primary-dark: #2d8a5f;
  --primary-light: #ECF8F2;
  --primary-lighter: #F4FBF7;
  --text-main: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #f7faf8;
  color: #1f2937;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #42b983; border-radius: 5px; }
* { scrollbar-width: thin; scrollbar-color: #42b983 #f1f1f1; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}
.navbar-logo img { width: 32px; height: 32px; border-radius: 8px; }
.navbar-menu { display: flex; gap: 8px; align-items: center; }
.navbar-menu a {
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.navbar-menu a:hover { background: var(--primary-light); color: var(--primary-dark); }
.navbar-menu a.active { color: var(--primary-dark); background: var(--primary-light); }
.nav-new {
  display: inline-block;
  background: #ff5252;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
  line-height: 1.1;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.page-header {
  padding: 160px 24px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--primary-lighter) 0%, #f7faf8 100%);
}
.page-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.apps-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px 90px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 24px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  min-height: 100%;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 185, 131, 0.45);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}
.app-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.app-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.app-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-live { background: #e8f8ef; color: #1f7a4d; }
.badge-download { background: #eef4ff; color: #2f5bd0; }
.badge-soon { background: #f3f4f6; color: #6b7280; }
.app-card-go {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 20px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.detail-hero img {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  flex-shrink: 0;
}
.detail-hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.detail-hero .lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 560px;
}

.detail-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 18px;
  scroll-margin-top: 110px;
}
.panel h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.jump-row a {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.jump-row a:hover { border-color: var(--primary); color: var(--primary-dark); }

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.download-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: #fbfdfc;
}
.download-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.download-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.download-card img {
  width: 168px;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.store-btn:hover { background: var(--primary-dark); }
.muted-box {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  background: #f8faf9;
  border-radius: 14px;
  font-size: 15px;
}

.legal-section { margin-bottom: 22px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.legal-section p, .legal-section li {
  font-size: 15px;
  color: #374151;
  line-height: 1.85;
}
.legal-section p { margin-bottom: 8px; }
.legal-section ol, .legal-section ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}
.legal-section li { margin-bottom: 6px; }
.legal-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.back-row { margin-top: 8px; }
.back-row a {
  display: inline-flex;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
}

footer {
  background: #1a1f2c;
  color: #c8cdd6;
  padding: 50px 24px 30px;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-tagline { font-size: 13px; color: #8a93a4; margin-bottom: 24px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a { color: #c8cdd6; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover, .footer-links a.active { color: var(--primary); }
.footer-divider { height: 1px; background: #2a3142; margin: 20px 0; }
.footer-copy { font-size: 12px; color: #8a93a4; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(66, 185, 131, 0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); }

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.qr-modal.visible { display: flex; }
.qr-modal-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 32px 28px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}
.qr-modal-x {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #9ca3af;
  cursor: pointer;
}
.qr-modal-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.qr-modal-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.qr-modal-img { width: 220px; height: 220px; object-fit: contain; margin: 0 auto 14px; border-radius: 10px; }
.qr-modal-tip { font-size: 13px; color: var(--primary-dark); font-weight: 600; margin-bottom: 18px; }
.qr-modal-close {
  width: 100%;
  padding: 11px 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-title { font-size: 30px; }
  .apps-grid { grid-template-columns: 1fr; }
  .detail-hero { flex-direction: column; text-align: center; }
  .detail-hero .lead { margin-left: auto; margin-right: auto; }
  .detail-hero h1 { font-size: 28px; }
  .app-card-meta, .detail-hero .app-card-meta { justify-content: center; }
  .navbar-inner { padding: 12px 16px; }
  .navbar-logo span { display: none; }
  .nav-toggle { display: flex; }
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 8px 16px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: none;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 12px 16px; }
  .panel { padding: 22px 18px; }
}
