@charset "utf-8";
/* ==================================================================
   云隐之城官网 · 手机 / 电脑 自适应补丁
   ---------------------------------------------------------------
   说明：本文件只做“覆盖”，不修改原模板的任何 css 文件。
        想微调效果，改这一个文件就够了。
        1) 下载区块样式
        2) 电脑端（>1100px）保持原样
        3) 手机 / 平板（<=1100px）整站重排
   ================================================================== */

/* ---------------- 0. 通用 ---------------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
/* 原模板 body 背景图 images/bgbg.jpg 缺失，留白处会露出白色；
   补一个深色底，任何屏幕宽度下都不会再出现白块 */
html, body { background-color: #0a0806; }
.dlsection, .dlsection * { box-sizing: border-box; }

/* ---------------- 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 h2 span {
  display: inline-block;
  margin: 0 10px;
  color: #8a6d38;
  -webkit-text-fill-color: #8a6d38;
}
.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; }

/* ---------------- 1.6 顶部横幅裁剪 ----------------
   原横幅高 1080px，下方 765~1032 是四块金吊牌（登录器 / 补丁下载 /
   网盘下载 / 游戏充值）。吊牌点击区已删除，这里把横幅高度收到 755px
   （丝带文字在 720 左右结束），刚好把吊牌整块裁掉，下方不留空档。 */
#Version { height: 755px; }

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

/* ---------------- 1.5 模板缺失文件兜底 ----------------
   第一个「时装展示」区块引用的是 san_img/gz.htm，这个文件在模板里就没有，
   电脑/手机上都会显示一整块空白页。这里先隐藏；
   以后要是补了这个文件，把这个 display:none 删掉即可。 */
.head_15 { display: none !important; }

/* ---------------- 3. 手机 / 平板：整站重排 ---------------- */
@media (max-width: 1099px) {

  /* ---- 顶部导航：改成自动换行 ---- */
  .toper_2 {
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 18px;
    padding: 8px 10px;
    box-sizing: border-box;
  }
  .toper_3, .toper_4, .toper_6, .toper_7, .toper_8, .toper_9 {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
  }
  .toper_6, .toper_7, .toper_8, .toper_9 { flex: 0 0 auto; }
  .toper_3 img { width: 46px !important; height: 46px !important; }
  .toper_4 img { width: 210px !important; height: auto !important; }
  .toper_6 a, .toper_7 a, .toper_8 a, .toper_9 a {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    line-height: 1.6;
  }
  .toper_6 a span, .toper_7 a span, .toper_8 a span, .toper_9 a span { display: none !important; }

  /* ---- 主视觉：整体等比缩放（--hs 由 adapt.js 计算） ---- */
  #Version {
    height: calc(var(--hs, 1) * 755px) !important;
    overflow: hidden !important;
  }
  #Flash, #Header, #Headera, #Headerb, #Headerc, #Headerd {
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) scale(var(--hs, 1));
    transform-origin: top center;
  }
  .head_1 {
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) scale(var(--hs, 1));
    transform-origin: top center;
  }
  /* 手机不加载 10MB 的横幅视频：上层静态美术（bg_01~05）本身就是完整横幅，
     这样不会出现视频未解码时的白块，也不费流量 */
  #Flash { display: none !important; }
  /* 这 5 层美术是绝对定位在 #Version 里的，top 偏移也要跟着缩放，否则会被裁掉 */
  #Header   { top: 0 !important; z-index: 2 !important; }
  #Headera  { top: calc(var(--hs, 1) * 216px) !important; z-index: 2 !important; }
  #Headerb  { top: calc(var(--hs, 1) * 432px) !important; z-index: 2 !important; }
  #Headerc  { top: calc(var(--hs, 1) * 648px) !important; z-index: 2 !important; }
  #Headerd  { top: calc(var(--hs, 1) * 864px) !important; z-index: 2 !important; }
  #Header img, #Headera img, #Headerb img,
  #Headerc img, #Headerd img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
    display: block;
  }
  /* 5 层美术叠在一起时缩放后接缝会露出 1px 亮线，各层多给 1px 让它们轻微重叠 */
  #Header, #Headera, #Headerb, #Headerc, #Headerd { height: 217px !important; }

  /* ---- 专属装备区块：背景随宽度缩放，图标自动换行 ---- */
  .head_114, .head_116, .head_118, .head_120,
  .head_122, .head_124, .head_126, .head_128 {
    background-size: 100% auto !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    padding-top: 9.4vw;
    height: auto !important;
  }
  .head_115, .head_117, .head_119, .head_121,
  .head_123, .head_125, .head_127, .head_129 {
    width: 100% !important;
    height: auto !important;
  }
  .downcontainer3 { height: auto !important; }
  .items {
    position: static !important;
    width: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 6px 20px !important;
    /* 图标是 float 布局，必须清浮动，否则容器高度塌陷、压到下一区块 */
    display: flow-root;
  }
  .items::after { content: ""; display: block; clear: both; height: 0; overflow: hidden; }
  .items li {
    width: 12.5% !important;
    height: auto !important;
    float: left;
  }
  .itemcss {
    width: 100% !important;
    height: auto !important;
    text-align: center;
  }
  .itemcss > img {
    display: inline-block !important;
    width: 100% !important;
    max-width: 42px !important;
    height: auto !important;
    vertical-align: middle;
  }

  /* ---- 幻灯片 / 时装 区块（1500 宽 iframe 等比缩放） ---- */
  .head_15, .head_15a {
    background-size: 100% auto !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    padding-top: 11.5vw;
    height: auto !important;
    overflow: hidden;
  }
  .head_16 { width: 100% !important; height: auto !important; }
  .head_17 {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(var(--fs, 1) * 640px) !important;
    overflow: hidden;
  }
  .head_17 iframe {
    width: 1500px !important;
    height: 640px !important;
    display: block;
    border: 0;
    transform: scale(var(--fs, 1));
    transform-origin: top left;
  }

  /* ---- 页脚：绝对定位改成居中堆叠 ---- */
  .footcer_2 {
    width: 100% !important;
    height: auto !important;
    padding: 18px 14px 26px;
    box-sizing: border-box;
  }
  .footcer_3, .footcer_4, .footcer_5, .footcer_6,
  .footcer_7, .footcer_8, .footcer_9, .footcer_10 {
    position: static !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    border: 0 !important;
    text-align: center !important;
    line-height: 1.9 !important;
    margin: 8px auto !important;
  }
  .footcer_3 img, .footcer_5 img { width: 150px !important; height: auto !important; }
  .footcer_4 a { font-size: 13px !important; letter-spacing: 0 !important; line-height: 1.8 !important; }
  .footcer_6 a, .footcer_7 a, .footcer_8 a,
  .footcer_9 a, .footcer_10 a { font-size: 12px !important; letter-spacing: 0 !important; }

  /* ---- 下载区块：三列改单列 ---- */
  .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: 1099px) {
  .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) {
  /* 装备图标每行 5 个，点击区域更大 */
  .items li { width: 20% !important; }
  .itemcss > img { max-width: 46px !important; }

  /* 顶部导航链接已删除，只剩 logo + 标语，小屏也一起显示 */
  .toper_4 { display: block !important; }
  .toper_4 img { width: 170px !important; height: auto !important; }
  .toper_2 { gap: 6px 12px; padding: 8px 10px; }

  .dlbtn .dl-t b { font-size: 16px; }
  .dlbtn .dl-t i { font-size: 11px; }
}

/* ---------------- 5. 打印 ---------------- */
@media print {
  .head_114, .head_116,
  .head_118, .head_120, .head_122, .head_124,
  .head_126, .head_128 { display: none !important; }
}
