﻿/* 按鈕共用樣式 */
.download-channel {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.download-channel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 184px;
  min-height: 66px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-channel a:hover,
.download-channel a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.download-channel a:focus-visible {
  outline: 3px solid #ffd95a;
  outline-offset: 3px;
}

.download-channel span {
  display: inline-block;
  width: 160px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease-in-out;
}

.download-channel span:hover {
  transform: scale(1.03);
}

/* 四個平台圖片 */
.download-apple {
  background-image: url('../images/download-apple.png');
}

.download-google {
  background-image: url('../images/download-google.png');
}

.download-android {
  background-image: url('../images/download-android.png');
}

.download-pc {
  background-image: url('../images/download-pc.png');
}

/* PC 按鈕只在大螢幕顯示 */
@media (max-width: 1200px) {
  .pc-only {
    display: none;
  }
}

/* 區塊背景 */
#download {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  background:
    linear-gradient(135deg, rgba(255, 217, 90, 0.1), rgba(85, 219, 197, 0.08) 46%, rgba(255, 255, 255, 0) 47%),
    rgba(16, 19, 29, 0.9);
  padding: 34px 28px 38px;
  border: 1px solid rgba(255, 217, 90, 0.38);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#download h2 {
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 0.75rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 184px));
  justify-content: center;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  margin-top: 0;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.qr-card p {
  margin: 0;
  font-weight: 700;
}

.qr-card img {
  width: 148px;
  height: 148px;
  padding: 8px;
  background: #fff;
}

@media (max-width: 768px) {
  #download {
    width: calc(100% - 1rem);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .download-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 360px;
  }

  .download-channel a {
    width: 100%;
    max-width: none;
    min-height: 64px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
  }

  .download-channel span {
    width: 168px;
    height: 54px;
  }

  .qr-card {
    width: 100%;
    max-width: 360px;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .qr-card img {
    width: 136px;
    height: 136px;
  }
}


