/* APP 下載介紹頁 */

:root {
  --appdl-pink: #f53192;
  --appdl-pink-soft: rgba(245, 49, 146, 0.6);
  --appdl-text: #383838;
  --appdl-gray-bg: #f0f0f0;
  --appdl-line: #d9d9d9;
}

.o-appdl,
.o-appdl *,
.o-appdl *::before,
.o-appdl *::after {
  box-sizing: border-box;
}

.o-appdl {
  margin: 0;
  background: #fff;
  color: var(--appdl-text);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
}

.o-appdl :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

/* reset 用 :where() 保持零特異度，避免蓋掉下方各區塊的間距 */
.o-appdl :where(h1, h2, h3, p) {
  margin: 0;
}

.o-appdl :where(ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-appdl a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.o-appdl a:hover {
  opacity: 0.8;
}

.o-appdl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 區塊標題（粉紅螢光底線為共用樣式） */

.o-appdl-title {
  font-size: clamp(28px, 2.2vw, 42px);
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.45;
  text-align: center;
}

.o-appdl-title--light {
  color: #fff;
}

.o-appdl-title__mark {
  background-image: linear-gradient(to bottom, transparent 70%, var(--appdl-pink) 70%);
}

.o-appdl-title__mark--soft {
  background-image: linear-gradient(to bottom, transparent 70%, var(--appdl-pink-soft) 70%);
}

/* 商店下載按鈕 */

.o-appdl-store {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.o-appdl-store__link {
  display: block;
  flex: 0 1 154px;
  min-width: 0;
}

.o-appdl-store__link img {
  width: 100%;
}

/* Header */

.o-appdl-header {
  padding: 20px 0 21px;
  border-bottom: 2px solid var(--appdl-pink);
  background: #fff;
  line-height: 0;
  text-align: center;
}

.o-appdl-header__logo {
  display: inline-flex;
}

/* 圖檔左右各留 24px 白邊，尺寸以設計稿的標誌本體換算 */
.o-appdl-header__logo img {
  width: auto;
  height: 27px;
}

/* 主視覺 */

/* 底色取自底圖頂端，瀏覽器縮放造成的半像素縫隙才不會露出白底 */
.o-appdl-kv {
  position: relative;
  overflow: hidden;
  background-color: #3e4e71;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 底圖偏亮，壓一層淡黑遮罩讓白色文字更清楚 */
.o-appdl-kv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.o-appdl-kv__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 61px 25px 0;
}

.o-appdl-kv__title {
  font-size: clamp(39px, 3.3vw, 63px);
  line-height: 1.28;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
}

.o-appdl-kv__panel {
  width: 100%;
  max-width: 340px;
  margin-top: 42px;
  padding: 10px 13px 13px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
}

.o-appdl-kv__lead {
  margin-bottom: 8px;
  font-size: clamp(14px, 1.2vw, 23px);
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

/* 手機示意圖下緣依設計稿裁切，容器比例即可見範圍 */
.o-appdl-kv__phone {
  width: 309px;
  max-width: 100%;
  margin-top: 19px;
  aspect-ratio: 309 / 392;
  overflow: hidden;
}

.o-appdl-kv__phone img {
  width: 100%;
}

/* 服務項目 */

.o-appdl-feature {
  padding: 50px 0 40px;
}

.o-appdl-feature__lead {
  max-width: 800px;
  margin: 18px auto 0;
  text-align: center;
}

.o-appdl-feature__lead p {
  font-size: clamp(14px, 1.3vw, 25px);
  line-height: 1.2;
}

.o-appdl-feature__list {
  margin-top: 30px;
}

.o-appdl-feature__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8.25px 0;
}

/* 六張 icon 原始尺寸不一（73~88px），統一框住並保持比例，標題才會對齊 */
.o-appdl-feature__icon {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center bottom;
}

.o-appdl-feature__text {
  padding-left: 14px;
  border-left: 1px solid var(--appdl-line);
}

.o-appdl-feature__name {
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.3;
}

.o-appdl-feature__desc {
  margin-top: 6px;
  font-size: clamp(11px, 0.63vw, 12px);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* 日本拍賣／日本商城 */

.o-appdl-market {
  padding: 24px 0 30px;
  background: var(--appdl-gray-bg);
}

.o-appdl-market__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.o-appdl-market__item {
  width: 100%;
  max-width: 390px;
}

.o-appdl-market__item img {
  margin: 0 auto;
}

/* 新會員優惠 */

.o-appdl-newmember {
  padding-bottom: 30px;
  background: var(--appdl-gray-bg);
  font-size: 0;
}

.o-appdl-newmember img {
  width: 100%;
  margin: 0 auto;
}

/* 熱門網站 */

.o-appdl-websites {
  padding: 16px 0 24px;
  background: var(--appdl-pink);
}

.o-appdl-websites__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1145px;
  margin: 20px auto 0;
}

.o-appdl-websites__item {
  min-width: 0;
}

.o-appdl-websites__item img {
  width: 100%;
}

/* 人氣拍賣 */

.o-appdl-auctions {
  padding: 20px 0 40px;
  background: var(--appdl-gray-bg);
}

.o-appdl-auctions__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1139px;
  margin: 20px auto 0;
}

.o-appdl-auctions__item {
  min-width: 0;
}

.o-appdl-auctions__item a {
  display: block;
  background: #fff;
}

.o-appdl-auctions__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 6px 4px;
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--appdl-text);
  text-align: center;
}

.o-appdl-auctions__item img {
  width: 100%;
}

/* Footer */

.o-appdl-footer {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.o-appdl-footer__inner {
  position: relative;
  padding: 33px 20px 40px;
  background: rgba(0, 0, 0, 0.5);
}

/* 容器對齊白卡本體，切圖右下多出的陰影絕對定位溢出，不撐開容器高度 */
.o-appdl-footer__logo {
  position: relative;
  width: 138px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.o-appdl-footer__logo img {
  position: absolute;
  top: 0;
  left: -3.02%;
  width: 107.54%;
  max-width: none;
}

.o-appdl-footer__slogan {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

.o-appdl-footer .o-appdl-store {
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
}

.o-appdl-footer .o-appdl-store__link {
  flex: none;
  width: 198px;
}

@media (min-width: 768px) {
  .o-appdl-header {
    padding: 10px 0 11px;
  }

  .o-appdl-title {
    letter-spacing: 2.1px;
  }

  .o-appdl-kv::after {
    display: none;
  }

  .o-appdl-header__logo img {
    height: 35px;
  }

  .o-appdl-store {
    gap: 20px;
  }

  .o-appdl-store__link {
    flex: 0 1 218px;
  }

  .o-appdl-kv__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    height: clamp(430px, 31.1vw, 597px);
    padding: clamp(70px, 6.98vw, 134px) 21.56% 0 23.54%;
    box-sizing: border-box;
  }

  .o-appdl-kv__title {
    text-align: left;
  }

  .o-appdl-kv__body {
    max-width: 640px;
  }

  .o-appdl-kv__panel {
    max-width: none;
    margin-top: clamp(20px, 2.6vw, 50px);
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .o-appdl-kv__lead {
    margin-bottom: clamp(10px, 1.3vw, 25px);
    text-align: left;
  }

  .o-appdl-kv__panel .o-appdl-store {
    justify-content: flex-start;
  }

  .o-appdl-kv__phone {
    flex: none;
    align-self: flex-end;
    width: clamp(200px, 18vw, 346px);
    max-width: none;
    margin-top: 0;
    aspect-ratio: 346 / 451;
  }

  .o-appdl-feature {
    padding: 55px 0 70px;
  }

  .o-appdl-feature__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 68px 20px;
    max-width: 1144px;
    margin: 80px auto 0;
  }

  .o-appdl-feature__item {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    text-align: center;
  }

  .o-appdl-feature__desc {
    line-height: 1.67;
  }

  .o-appdl-feature__icon {
    width: 88px;
    height: 88px;
  }

  .o-appdl-feature__text {
    padding-left: 0;
    border-left: 0;
  }

  .o-appdl-feature__name {
    margin-top: 20px;
  }

  .o-appdl-feature__desc {
    position: relative;
    margin-top: 12px;
    padding-top: 12px;
  }

  .o-appdl-feature__desc::before {
    content: "";
    position: absolute;
    top: 0;
    right: 19.5%;
    left: 19.5%;
    border-top: 1px solid var(--appdl-line);
  }

  .o-appdl-market {
    padding: 42px 0 50px;
  }

  /* 兩張切圖寬度不一（527／535），改為等分；寬度對齊正下方新會員區的白卡（1000） */
  .o-appdl-market__list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .o-appdl-market__item {
    flex: 1 1 0;
    max-width: none;
  }

  /* 兩張切圖的白卡都是 492 寬，但徽章分別突出左／右側；
     用負 margin 扣掉留白，讓白卡而非圖框對齊，徽章自然溢出 */
  .o-appdl-market__item img {
    width: 107.11%;
    max-width: none;
    margin-left: -7.11%;
  }

  .o-appdl-market__item:last-child img {
    width: 108.74%;
    margin-left: 0;
  }

  /* 桌機切圖底緣即設計稿的裁切位置，粉紅區直接相接 */
  .o-appdl-newmember {
    padding-bottom: 0;
  }

  .o-appdl-newmember img {
    max-width: 1000px;
  }

  .o-appdl-websites {
    padding: 60px 0 70px;
  }

  .o-appdl-websites__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
  }

  .o-appdl-auctions {
    padding: 60px 0 80px;
  }

  .o-appdl-auctions__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
    margin-top: 40px;
  }

  /* 固定高度，否則兩行的分類會把圖片往下推 */
  .o-appdl-auctions__name {
    height: 50px;
    min-height: 0;
    padding: 4px 10px;
  }

  /* 半透明面板烤在 footer_bg.png 裡，內容改用 vw 與底圖等比才對得上框 */
  .o-appdl-footer__inner {
    height: 23.802vw;
    padding: 1.771vw 0 0;
    background: none;
    box-sizing: border-box;
  }

  .o-appdl-footer__logo {
    width: 10.417vw;
  }

  .o-appdl-footer__panel {
    width: 34.583vw;
    margin: 0.781vw auto 0;
    padding: 0.573vw 0 0;
    box-sizing: border-box;
  }

  .o-appdl-footer__slogan {
    margin-top: 0;
    font-size: 1.25vw;
    line-height: 1.615vw;
  }

  .o-appdl-footer .o-appdl-store {
    flex-direction: row;
    gap: 1.042vw;
    margin-top: 0.521vw;
  }

  .o-appdl-footer .o-appdl-store__link {
    width: 15.104vw;
  }
}
