@charset "utf-8";
/* ==================================================================
   天妖迷失 · 手机 / 电脑 自适应补丁
   ---------------------------------------------------------------
   只做覆盖，不修改模板的 css/css.css。
   1) 基础 + 下载区块样式
   2) 手机 / 平板（<=1100px）整屏等比缩放
   ================================================================== */

/* ---------------- 0. 基础 ---------------- */
html { -webkit-text-size-adjust: 100%; }
/* 原模板 body 没有底色，横幅下方会露出白块 */
html, body { background: #000; overflow-x: hidden; }
.dlsection, .dlsection * { box-sizing: border-box; }

/* 顶栏：原来固定 1920 宽，logo 在 1920 以下的屏幕上会被推到屏幕外；
   菜单已删除，改成随屏宽、logo 靠左，任何屏幕都能看到 */
#header { width: 100% !important; left: 0 !important; margin-left: 0 !important; }
#header .logo img { left: 24px !important; margin-left: 0 !important; }

/* ---------------- 1. 客户端下载区块 ---------------- */
.dlsection {
  position: relative;
  padding: 34px 0 38px;
  background:
    radial-gradient(1000px 320px at 50% -40px, rgba(214, 176, 96, .16), transparent 70%),
    linear-gradient(180deg, #0a0806 0%, #17110b 55%, #0a0806 100%);
  border-top: 1px solid rgba(214, 176, 96, .28);
  border-bottom: 1px solid rgba(214, 176, 96, .28);
  overflow: hidden;
}
.dlbox {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.dltitle { text-align: center; }
.dltitle h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #fff0c8 8%, #e3bd72 55%, #b9873a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dltitle p {
  margin: 9px 0 0;
  font-size: 13px;
  letter-spacing: 4px;
  color: #8d7c60;
}
.dltitle p em { font-style: normal; color: #c9a45f; }

.dlgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.dlitem { display: flex; flex-direction: column; }

.dlbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(214, 176, 96, .5);
  background: linear-gradient(180deg, #2c2318 0%, #171108 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 194, .14), 0 10px 24px -14px #000;
  color: #f7e6bd;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dlbtn:link, .dlbtn:visited, .dlbtn:hover, .dlbtn:active {
  text-decoration: none;
  color: #f7e6bd;
}
.dlbtn:hover {
  transform: translateY(-3px);
  border-color: #f2d493;
  box-shadow: inset 0 1px 0 rgba(255, 236, 194, .26), 0 14px 28px -12px rgba(226, 186, 106, .45);
}
.dlbtn .dl-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
}
.dlbtn .dl-t { display: flex; flex-direction: column; line-height: 1.2; }
.dlbtn .dl-t b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff3d4;
}
.dlbtn .dl-t i {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: #a2916f;
  margin-top: 4px;
}
.dlbtn--and .dl-ico { color: #8fdc8a; }
.dlbtn--ios .dl-ico { color: #efefef; }
.dlbtn--pc  .dl-ico { color: #9fd0ff; }

.dlbak {
  margin: 9px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  color: #7d7059;
}
.dlbak a,
.dlbak a:link,
.dlbak a:visited {
  color: #d9b878;
  text-decoration: underline;
  font-size: 13px;
  padding: 3px 4px;
  text-underline-offset: 3px;
}
.dlbak a:hover { color: #ffe6b0; }

/* ---------------- 2. 中等屏幕 ---------------- */
@media (max-width: 1199px) {
  .dlbox { width: 100%; }
}

/* ---------------- 3. 手机 / 平板：整屏等比缩放 ----------------
   模板是 1920×950 的固定像素单屏（顶部 70px 黑条 + 横幅）。
   窄屏下按 vw/1920 整体缩放，--s 由 adapt.js 计算。 */
@media (max-width: 1100px) {

  .bigcontainer { width: 100%; }

  /* 顶栏：不再绝对定位覆盖横幅，改成正常的一条，logo 居中 */
  #header {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 0;
    text-align: center;
    background: #000;
  }
  #header .logo { position: static; }
  #header .logo img {
    position: static !important;
    display: inline-block;
    width: 150px !important;
    height: auto !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
  }

  /* 横幅：容器高度跟着缩放走，内部 1920 舞台居中缩放 */
  .topcontainer {
    width: 100% !important;
    height: calc(var(--s, 1) * 950px) !important;
    left: auto !important;
    margin-left: 0 !important;
    background-size: 100% auto !important;
    background-position: top center !important;
    overflow: hidden;
  }
  .animatetop {
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) scale(var(--s, 1));
    transform-origin: top center;
  }
  .animatetop video {
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
  }

  /* 下载区块：三列改单列 */
  .dlsection { padding: 24px 0 28px; }
  .dlgrid { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .dlbtn { min-height: 66px; justify-content: flex-start; padding: 12px 16px; }
  .dlbtn .dl-t b { font-size: 17px; letter-spacing: 2px; }
  .dlbtn .dl-ico { width: 34px; height: 34px; }
  .dltitle h2 { font-size: 21px; letter-spacing: 3px; }
  .dltitle p { font-size: 12px; letter-spacing: 2px; }
  .dlbak { font-size: 13px; margin-top: 8px; }
}

/* 平板横向：下载按钮回到三列 */
@media (min-width: 761px) and (max-width: 1100px) {
  .dlgrid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .dlbtn { justify-content: center; padding: 12px 10px; gap: 10px; }
  .dlbtn .dl-t b { font-size: 15px; letter-spacing: 1px; }
  .dlbtn .dl-t i { font-size: 11px; letter-spacing: .5px; }
  .dlbtn .dl-ico { width: 30px; height: 30px; }
}

/* ---------------- 4. 小屏手机 ---------------- */
@media (max-width: 520px) {
  #header .logo img { width: 132px !important; }
  .dlbtn .dl-t b { font-size: 16px; }
  .dlbtn .dl-t i { font-size: 11px; }
}
