body {
    margin: 0;
    word-wrap: break-word;
}

.image {
    width: 250px;
    height: 100px;
}

#content-container {
    box-sizing: border-box;
    padding: 24px;
    margin: 0 24px 0 24px;
    background-color: #ffffff;
}

.app-title {
    font-size: 14px;
    text-align: center;
    padding-bottom: 11px;
    text-transform: uppercase;
}

.input-wrapper {
    /* position: fixed; */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    -webkit-box-shadow: 0px -20px 20px -8px rgba(255, 255, 255, 1);
    -moz-box-shadow: 0px -20px 20px -8px rgba(255, 255, 255, 1);
    box-shadow: 0px -20px 20px -8px rgba(255, 255, 255, 1);
}

.input-container {
    width: 100%;
    padding: 0 24px;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.form-get-the-app {
    text-align: center;
    padding-top: 10px;
}

.form-get-the-app>input {
    margin-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #FFFFFF;
    border: 1px solid #979797;
    border-radius: 2px;
    font-size: 60px;
    color: #CECECE;
    line-height: 24px;
    padding-left: 20px;
}

.cta-button {
    display: block;
    height: 62px;
    line-height: 62px;
    background-color: #06122F;
    border-radius: 2px;
    font-size: 20px;
    padding: 0 20px;
    margin: 0 20px;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
}

/* No data (portrait) */
@media only screen and (orientation: portrait) {
    .card--no-data .main-image {
        background-image: url('https://ephttp.easycard.com.tw/app_image/linkPreview/linkPreview.png');
    }
}

/* ============ Landscape ============ */
@media only screen and (orientation: landscape) {
    .main-image {
        margin: 30px auto 0 auto;
    }

    #content-container {
        padding: 10px 24px;
    }

    .input-container {
        width: 50%;
        margin: 0 auto;
    }

    .form-get-the-app {
        padding-top: 8px;
    }

    .cta-button {
        height: 44px;
        line-height: 44px;
    }
}

/* Reusables */
.text-bold {
    font-family: "Open Sans", Helvetica, serif;
    font-weight: 700
}

.text-light {
    font-family: "Open Sans", Helvetica, serif;
    font-weight: 400;
}

/* 讓卡片有基本寬度與置中 */
.card {
  box-sizing: border-box;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px;
}

/* 垂直排版容器 */
.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* 與設計一致的間距 */
.mt-30vh { margin-top: 30vh; }

/* 文字置中（你有用到 .text-center） */
.text-center { text-align: center; }

/* main-image：給尺寸與顯示方式 */
.main-image {
  width: 250px;               /* 與原 .image 一樣 */
  height: 100px;              /* 與原 .image 一樣 */
  display: block;
  margin: 0 auto;
  background-size: contain;   /* 不變形縮放 */
  background-repeat: no-repeat;
  background-position: center;
}

/* 背景圖：不只 portrait，預設就給；portrait 再覆蓋也可 */
.card--no-data .main-image {
  background-image: url('/eccsl/img/linkPreview.png');  /* 用站內路徑，符合 img-src 'self' */
}

/* 如果你仍想在 portrait 用另一張 CDN 圖，且 CSP 已放行，可加這段覆蓋 */
@media only screen and (orientation: portrait) {
  .card--no-data .main-image {
    background-image: url('/eccsl/img/linkPreview.png'); /* 或換成已放行的外鏈 */
  }
}

/* 下載按鈕群組：水平排列 */
.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 12px 0 24px;
}

/* 讓按鈕可點且置中 */
#btn-ios,
#btn-android {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 橫向時微調間距（延續你原本的 landscape 區塊） */
@media only screen and (orientation: landscape) {
  .download-buttons { margin: 8px 0 16px; }
}
