*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 40px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.logo-img {
  width: 200px;
  height: auto;
  margin-bottom: 24px;
  display: block;
}

.desc {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 36px;
}

.download-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 68px;
  padding: 14px 14px 14px 16px;
  background: #eef6fc;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
}

.download-card:has(.ribbon) {
  padding-left: 18px;
}

.download-card--web {
  justify-content: center;
  min-height: 64px;
  padding: 16px 14px;
  background: #ffffff;
  border: 1.5px solid #4da3ff;
}

.card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-right: 4px;
}

.card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 3px;
}

.card-info p {
  font-size: 0.7rem;
  color: #888;
  line-height: 1.35;
}

.install-btn {
  flex-shrink: 0;
  min-width: 60px;
  padding: 6px 16px;
  background: linear-gradient(180deg, #5eb3ff 0%, #2b7de9 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(43, 125, 233, 0.22);
}

.ribbon {
  position: absolute;
  top: 8px;
  left: -24px;
  width: 72px;
  padding: 2px 0;
  background: linear-gradient(180deg, #5eb3ff 0%, #3b9ff5 100%);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  transform: rotate(-45deg);
  letter-spacing: 0.5px;
}

.start-btn {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3b9ff5;
  letter-spacing: 1px;
}

.carousel {
  width: 100%;
  margin-bottom: 36px;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
  object-fit: contain;
  border: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c5d9f0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  width: 20px;
  background: #4da3ff;
  border-radius: 999px;
  transform: none;
}

.guide-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #f0f7ff;
  padding: 36px 20px 48px;
  margin-top: 24px;
}

.guide-inner {
  max-width: 480px;
  margin: 0 auto;
}

.guide-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #4da3ff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.guide-arrow {
  flex-shrink: 0;
}

.guide-tip {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 24px;
}

.guide-tabs {
  display: flex;
  border-bottom: 1px solid #d6e8f8;
  margin-bottom: 24px;
}

.guide-tab {
  flex: 1;
  padding: 12px 8px 14px;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.guide-tab.active {
  color: #4da3ff;
  font-weight: 600;
}

.guide-tab.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  background: #4da3ff;
  border-radius: 2px 2px 0 0;
}

.guide-panel {
  display: none;
}

.guide-panel.active {
  display: block;
}

.guide-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a5c;
  text-align: center;
  margin-bottom: 10px;
}

.guide-desc {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.guide-notice {
  background: #e3f0fa;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.guide-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-steps img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.guide-steps img.step-last {
  grid-column: 1 / -1;
  width: calc(50% - 6px);
  margin: 0 auto;
}

.footer {
  margin-top: 48px;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: #aaa;
}

@media (min-width: 640px) {
  .content {
    max-width: 640px;
  }

  .guide-inner {
    max-width: 640px;
  }

  .carousel-track img {
    max-height: 400px;
  }
}
