body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* 占满屏幕宽度 */
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 14px;
  box-sizing: border-box;
}

/* logo */
.header-container .logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 10px;
}

header .logo {
  display: flex;
  align-items: center;
}

main {
  max-width: 1024px;
  margin: 0 auto;
  margin-top: 80px;
  text-align: center;
}


/* 新增 Logo 样式 */
.download-logo {
  text-align: center;
  /* Logo 居中 */
}

.download-logo img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 横版文字 Logo（如唯独圣经）：不按方形图标处理，去掉圆角与投影 */
.download-logo img.logo-wide {
  width: 200px;
  max-width: 70%;
  border-radius: 0;
  box-shadow: none;
}

.download-section {
  max-width: 1024px;
  margin: 0 auto;
  margin-top: 60px;
  text-align: center;
}


.download-buttons {
  display: flex;
  gap: 20px;
  /* flex-wrap: wrap;
  justify-content: center; */
  flex-direction: column;
  align-items: center;
}

.download-buttons a {
  display: inline-block;
  background-color: #ED002F;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 260px;
}

.download-buttons a:hover {
  background-color: #b80024;
}

/* 按钮内容垂直居中 */
.btn-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* Logo 和文字垂直居中，文字里加版本号 */
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-text span {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
  color: #fff;
}

.btn-text small {
  font-size: 12px;
  line-height: 1;
  opacity: 0.8;
  color: #fff;
}

.download-description {
  margin: 10px 0 20px 0;
  font-size: 14px;
  color: #555;
  line-height: 2;
   white-space: pre-wrap;
}

footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 14px;
}


/* ===== 语言选择 ===== */
.lang-switcher {
  display: inline-block;
  position: relative;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
}

.lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-text-fill-color: #333;
  -webkit-tap-highlight-color: transparent;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 8px 40px 8px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.lang-switcher::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ===== 响应式 ===== */
@media (max-width: 700px) {
  .lang-switcher select {
    font-size: 16px;
    padding: 6px 24px 6px 12px;
  }

  main h1 {
    font-size: 26px;
  }

  main p {
    font-size: 16px;
  }
}

/* 屏幕大于800px时，download-section 两列显示 */
@media (min-width: 700px) {
  main {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
  }
  .download-section {
    flex: 1 1 320px;
    max-width: 400px;
    margin-top: 60px;
    box-sizing: border-box;
  }
}
/* ===== 总页 / 子页面布局（main.home）：照老版本，从上往下一列——
   「产品 Logo + 名称 + 手机按钮」→「主内圣经 Logo + 主内圣经 电脑版 + 电脑按钮」→ 其他版本 / 返回首页 ===== */
main.home {
  display: block;
  max-width: 880px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* 两段共用一列，列宽取两组里最宽的那组，所以上下两组按钮一样宽；屏幕窄时跟着收窄 */
.products {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-content: center;
  gap: 56px;
  margin-top: 40px;
}
.product .download-logo img { width: 80px; height: auto; border-radius: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); }
/* 横版文字 Logo（唯独圣经）：不按方形图标处理 */
.product .download-logo img.logo-wide { width: 200px; max-width: 70%; border-radius: 0; box-shadow: none; }
.product h2 { margin: 20px 0 28px; font-size: 24px; }
/* 唯独圣经的横版 Logo 已带名称，不再放标题，Logo 和按钮之间直接留出标题原来的间距 */
.product .download-logo + .download-buttons { margin-top: 28px; }
/* 首页电脑版不放 Logo：标题顶到区块顶部，并收紧与上方手机版的间距（56px → 32px） */
.product.no-logo { margin-top: -24px; }
.product.no-logo h2 { margin-top: 0; }

/* 按钮跟旧版一样最少 310px 宽，文字长（如泰语）就整组一起变宽 */
.product .download-buttons,
.product .desktop-list {
  min-width: min(310px, 100%);
  margin: 0 auto;
  align-items: stretch;
  gap: 20px;
}
.product .download-buttons a,
.product .desktop-list > a {
  min-width: 0;
  box-sizing: border-box;
}
/* 泰语、缅甸语字形高，按钮文字折行时不能用 line-height:1，否则上下行会叠在一起 */
/* 行高 1.25 后把上下内边距从 12px 减到 11px、去掉 2px 间距，单行时高度仍和老版一样 54px */
.product .download-buttons a { padding-top: 11px; padding-bottom: 11px; border-radius: 999px; }
.product .btn-text span { line-height: 1.25; margin-bottom: 0; }
.desktop-list span { line-height: 1.25; }
.desktop-list small { margin-top: 2px; }

/* 电脑版：竖排，Windows 商店 → 安装包 → Mac 商店 → 安装包 */
.desktop-list { display: flex; flex-direction: column; }

.desktop-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 6px 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  line-height: 1.1;
}

.desktop-list img { width: 24px; height: 24px; flex: none; }

/* 商店按钮用品牌红，和手机版按钮统一 */
.store-badge { background: #ED002F; color: #fff; transition: background-color .3s ease; }
.store-badge:hover { background: #b80024; }
.store-badge img { filter: brightness(0) invert(1); }
.store-badge { font-size: 16px; }
.store-badge small { display: block; font-size: 12px; font-weight: normal; opacity: .8; }

.btn-package {
  border: 1.5px solid #f3c2cc;
  color: #ED002F;
  background: #fff;
  font-size: 16px;
  transition: background .2s;
}
.btn-package:hover { background: #fff3f5; }
.btn-package img {
  filter: brightness(0) saturate(100%) invert(12%) sepia(98%) saturate(7000%) hue-rotate(345deg) brightness(95%) contrast(110%);
}
.btn-package small { display: block; font-size: 12px; font-weight: normal; color: #c97b8a; }

/* 两组（Windows / Mac）之间多留一点间距 */
.desktop-list > :nth-child(3) { margin-top: 8px; }

/* 其他版本 */
.others { margin-top: 48px; }
.others h3 { font-size: 18px; margin: 0 0 16px; }
.others-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.other-app {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  border: 1px solid transparent;
  transition: border-color .2s, transform .2s;
}
.other-app:hover { border-color: #f3c2cc; transform: translateY(-2px); }
.other-app .o-logo { height: 52px; display: flex; align-items: center; justify-content: center; }
.other-app .o-logo img { width: 52px; height: 52px; border-radius: 12px; }
.other-app .o-logo img.logo-wide { width: auto; height: 34px; max-width: none; border-radius: 0; }
.other-app strong { font-size: 15px; }
.other-app em { font-style: normal; font-size: 13px; color: #ED002F; font-weight: bold; }

.home ~ footer .download-description { margin-top: 32px; }

/* 子页面底部「返回首页」 */
.back-home { margin-top: 32px; }
.back-home a {
  display: inline-block;
  padding: 10px 28px;
  border: 1.5px solid #f3c2cc;
  border-radius: 999px;
  background: #fff;
  color: #ED002F;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: background .2s;
}
.back-home a:hover { background: #fff3f5; }

@media (max-width: 900px) {
  .others-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .products { gap: 44px; margin-top: 24px; }
  .product.no-logo { margin-top: -16px; }
  main.home { padding: 0 12px; }
  .product .download-buttons a,
  .product .desktop-list > a { padding-left: 16px; padding-right: 16px; }
  .others { margin-top: 32px; }
  .others-grid { gap: 12px; }
  .other-app { padding: 14px 10px; }
  .home ~ footer .download-description { font-size: 13px; }
}
