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

html,
body {
  width: 100%;
  min-height: 100%;
}

.btn:hover {
  filter: brightness(1.12);
  outline: 1px solid rgba(255, 255, 255, 0.85);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  background-size: 400px 400px;
  background-repeat: repeat;
  background-attachment: fixed;
}

body.device-pc {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.page {
  margin: 0 auto;
}

body.device-pc .page {
  max-width: 750px;
}

.logo-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  width: 42%;
  max-width: 320px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.logo {
  width: 160%;
  height: auto;
  display: block;
}

.banner {
  width: 100%;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  line-height: 0;
}

.banner img {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.banner .banner-pc {
  display: none;
}

body.device-pc .banner .banner-h5 {
  display: none;
}

body.device-pc .banner .banner-pc {
  display: block;
}

.app-list {
  padding: 16px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-card {
  border-radius: 10px;
  border: 1.5px solid transparent;
  padding: 16px 14px 18px;
}

.app-card.card-0 {
  background: #fff6e3;
  border-color: #f0d9a4;
}

.app-card.card-1 {
  background: #e8f8e8;
  border-color: #a9e2b4;
}

.app-card.card-2 {
  background: #fdeaea;
  border-color: #f3b9b9;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-img {
  width: 18%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

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

.card-title {
  font-size: 25px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  word-break: break-all;
}

.card-desc {
  margin-top: 7px;
  font-size: 17px;
  color: #555555;
  line-height: 1.4;
  word-break: break-all;
}

.card-btns {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: none;
  border-radius: 9px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.btn-1 {
  background: linear-gradient(180deg, #f8c25a 0%, #ef9f2e 100%);
  box-shadow: 0 3px 6px rgba(210, 140, 30, 0.35);
}

.btn-2 {
  background: linear-gradient(180deg, #6fc0f2 0%, #3fa0e8 100%);
  box-shadow: 0 3px 6px rgba(50, 140, 210, 0.35);
}

.btn:active {
  transform: scale(0.98);
}

.footer {
  width: 100%;
  line-height: 0;
  margin-top: 6px;
}

.footer img {
  width: 90%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.popup-overlay.hidden {
  display: none;
}

.popup {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  cursor: default;
}

.popup-title {
  background: #3f8efc;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 16px 18px;
  letter-spacing: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}


.popup-content {
  background: #ffffff;
  padding: 22px 24px 24px;
  font-size: 18px;
  color: #444444;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
