:root {
  --blue: #4285f4;
  --blue-dark: #3367d6;
  --green: #34a853;
  --gold: #ffc107;
  --bg: #f8f9fa;
  --text: #333;
  --muted: #666;
  --line: #edf0f4;
  --card: #fff;
  --shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1100px, calc(100% - 30px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  border: 1px solid #d9e3f8;
  background: #fff;
  color: var(--blue);
  border-radius: 6px;
  min-width: 34px;
  height: 30px;
  cursor: pointer;
}

.lang-switch button.on {
  background: var(--blue);
  color: #fff;
}

.announce {
  padding: 10px 15px;
  background: #eaf2ff;
  color: var(--blue-dark);
  text-align: center;
  font-size: 14px;
}

.app-header {
  margin: 20px auto 30px;
  padding: 40px 18px;
  border-radius: 15px;
  background: linear-gradient(90deg, #f1f8ff, #fff);
  text-align: center;
  cursor: pointer;
}

.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
}

.app-developer {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 16px;
}

.app-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.stars,
.review-stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.rating-text {
  color: var(--muted);
  font-size: 14px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  border-radius: 15px;
  background: #f0f2f5;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 12px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 40px;
  border-radius: 8px;
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(66, 133, 244, .3);
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}

.download-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, .4);
}

.download-symbol {
  font-size: 22px;
  line-height: 1;
}

.backup-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.backup-row a,
.backup-row button {
  border: 1px solid #d9e3f8;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  padding: 9px 12px;
  cursor: pointer;
}

.app-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
}

.features,
.screenshots,
.app-description,
.download-info,
.reviews {
  margin-bottom: 40px;
}

.section-title {
  margin: 0 0 20px;
  padding-bottom: 10px;
  text-align: center;
  font-size: 24px;
  line-height: 1.3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.feature-card {
  display: block;
  min-height: 188px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 25px;
  text-align: center;
  transition: transform .2s ease;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #f0f7ff;
  color: var(--blue);
  font-size: 27px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.screenshot-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 2px 18px;
  scrollbar-width: thin;
}

.screenshot-container a {
  flex: 0 0 auto;
}

.screenshot {
  display: block;
  width: 230px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.description-text,
.download-info,
.review-card {
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 10px;
}

.description-text {
  display: block;
  padding: 25px;
  color: #555;
  line-height: 1.8;
}

.description-text p {
  margin: 0;
}

.download-info {
  padding: 30px;
}

.info-item {
  display: flex;
  gap: 15px;
  padding: 0 0 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f2f5;
}

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

.info-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  color: var(--blue);
}

.info-content h3 {
  margin: 0 0 5px;
  text-align: left;
  font-size: 16px;
}

.info-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.review-card {
  display: block;
  padding: 20px;
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.reviewer {
  font-weight: 700;
}

.review-date {
  color: #999;
  font-size: 14px;
  white-space: nowrap;
}

.review-text {
  margin-top: 10px;
  color: #555;
}

.app-footer {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid #eee;
  background: #fff;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--blue);
}

.copyright,
.footer-warning,
#footerRecord {
  margin: 6px 0 0;
  color: #999;
  font-size: 14px;
}

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(560px, calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid #e3ebfb;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(39, 69, 128, .16);
  transform: translate(-50%, 120%);
  transition: transform .2s ease;
}

.floating-cta.show {
  transform: translate(-50%, 0);
}

.floating-cta b,
.floating-cta span {
  display: block;
}

.floating-cta span {
  color: var(--muted);
  font-size: 13px;
}

.floating-cta a {
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

.contact-button {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 90;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(52, 168, 83, .25);
}

.full-mask,
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
}

.full-mask > div,
.modal-card {
  width: min(420px, 100%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  padding: 26px;
  text-align: center;
}

.modal-card {
  position: relative;
}

.modal-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f9;
  cursor: pointer;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f7ff;
  color: var(--blue);
  font-size: 26px;
}

.modal-button,
.modal-link {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.modal-button {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.modal-link {
  background: transparent;
  color: var(--muted);
}

.download-busy {
  pointer-events: none;
  opacity: .72;
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1100px);
  }

  .nav-content {
    min-height: 58px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .app-header {
    padding: 32px 14px;
  }

  .app-title {
    font-size: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .app-info {
    flex-direction: column;
    gap: 8px;
  }

  .download-btn {
    width: min(100%, 310px);
    padding-inline: 18px;
  }

  .screenshot {
    width: 280px;
  }

  .download-info {
    padding: 22px;
  }

  .floating-cta {
    bottom: 10px;
  }
}
