/* ============================================================
   COK列王的纷争 · 桌面版样式
   逐条对照原站 cok.g.wali.com/index.html 的 CSS 规则
   移动端样式见 m/style.css
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  user-select: none;
}

blockquote, body, dd, div, dl, dt, embed, fieldset, form, h1, h2, h3, h4, h5, h6,
html, input, li, object, ol, p, pre, table, td, th, ul {
  padding: 0;
  margin: 0;
}

li, ul { list-style: none; }

body {
  font-family: arial, "Microsoft Yahei", "Hiragino Sans GB", sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

a { text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
a img { border: none; }

article, aside, details, dialog, figure, footer, header, main, menu, nav, section, summary {
  display: block;
}

/* ── 容器 ─────────────────────────────────────────────── */
.container {
  margin: 0 auto;
  width: 1180px;
  text-align: center;
  position: relative;
  height: 100%;
}

.container.fill-screen { width: 100%; }

/* ── 加载屏 ───────────────────────────────────────────── */
.loading-screen {
  background: #000;
  left: 0;
  top: 0;
  position: absolute;
  transform: translateZ(0);
  transition: transform .75s ease;
  width: 100%;
  z-index: 19999;
}

/* loading-screen1 = 铺满并停留；loading-screen0 = 上滑移出（与原站一致） */
.loading-screen1 { height: 100%; }

.loading-screen0 {
  height: 100%;
  transform: translate3d(0, -100%, 0);
  transition: transform .75s ease;
}

.loading-screen.is-hidden {
  transform: translate3d(0, -100%, 0);
}

.loading-screen .logo {
  height: 100px;
  left: 50%;
  margin: -50px 0 0 -50px;
  opacity: .5;
  position: absolute;
  text-indent: -9999px;
  top: 50%;
  width: 100px;
  background: url(../img/pc/mi-logo.png) no-repeat;
  background-size: 100% 100%;
  transform: scale(1);
  overflow: hidden;
}

.loading-screen .logo.animate {
  -webkit-perspective: 1000px;
  perspective: 1000px;
  backface-visibility: hidden;
  animation: loader 1.75s ease infinite;
}

@keyframes loader {
  0%   { transform: scale(.8); opacity: 0; }
  50%  { transform: scale(1); opacity: 1; }
  60%  { transform: scale(1); opacity: 1; }
  to   { transform: scale(.8); opacity: 0; }
}

/* ── 页面骨架（原站 .index1 overflow:scroll 纵向滚动） ── */
.index { width: 100%; height: 100%; }
.index0 { overflow: hidden; }
.index1 { overflow: scroll; }

/* ── 大图区块 ─────────────────────────────────────────── */
.hero-wrap {
  background-repeat: no-repeat;
  background-position: center top;
  width: 100%;
  min-width: 1180px;
}

.section-01 {
  background-image: url(../img/pc/mi-banner-01.jpg);
  height: 1028px;
}

.section-02 {
  background-image: url(../img/pc/mi-banner-02.jpg);
  height: 1260px;
}

.section-02.mi-mall {
  background-image: url(../img/pc/mi-shang-banner-02.jpg);
  height: 1260px;
  width: 100%;
  display: none;
  background-repeat: no-repeat;
  background-position: center top;
}

.section-03 {
  position: relative;
  z-index: 22;
}

.section-04 {
  background-image: url(../img/pc/mi-banner-04.jpg);
  position: relative;
  height: 920px;
  transform: translateY(-85px);
}

.section-05 {
  background-image: url(../img/pc/mi-banner-05.jpg);
  height: 800px;
}

.section-06 {
  background-image: url(../img/pc/mi-banner-06.jpg);
  height: 800px;
}

/* ── 顶部小米 logo（原站为隐藏态） ─────────────────────── */
.container .mi-top-logo {
  width: 56px;
  height: 56px;
  background: url(../img/pc/mi-logo.png) no-repeat center top;
  top: 20px;
  left: 10px;
  position: absolute;
  display: none;
}

/* ── 文案排版 ─────────────────────────────────────────── */
.container h3 {
  font-size: 36px;
  padding-top: 70px;
  color: #444;
}

.container strong {
  font-size: 62px;
  padding-top: 25px;
  display: block;
  color: #444;
}

.container .section-02-tips {
  font-size: 17px;
  color: #777;
  text-align: left;
  padding-top: 35px;
  line-height: 2;
}

.section-02-tips span {
  color: #444;
  font-weight: 700;
}

.container .btn-prompt {
  display: block;
  color: #2e1513;
  font-size: 16px;
  padding-top: 370px;
}

/* ── 按钮区（首屏右下角） ─────────────────────────────── */
/* 三个按钮纵向排列，总高 266px（82×3 + 10×2 间隔） */
.btn-area {
  position: absolute;
  bottom: 34px;
  right: 56px;
}

.mi-btn {
  width: 264px;
  height: 82px;
  display: block;
  margin-top: 10px;
  cursor: pointer;
}

.mi-btn.btn-moblie { background: url(../img/pc/button-mobile.png) no-repeat; }
.mi-btn.btn-bbs { background: url(../img/pc/button-bbs.png) no-repeat; }

/* 「其他信息」：排在「官方论坛」下方。
   素材由 button-bbs.png 的背景区提取生成，与其他按钮同一套金属边框风格 */
.mi-btn.btn-info {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: url(../img/pc/button-info.png) no-repeat;
}

/* 文字对齐另外两个按钮里烤好的字样：
   实测「官方论坛」字高 22px、核心色 rgb(184,163,147)，
   其余两个按钮文字均为思源黑体 Medium 的观感，故用 500 字重 */
.mi-btn.btn-info span {
  color: #b8a393;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}

/* 与另外两个按钮一致的图标：圆角方框 + 三条信息线 */
.mi-btn.btn-info span::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  vertical-align: -7px;
  border: 3px solid currentColor;
  border-radius: 7px;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 18px 3px, 18px 3px, 11px 3px;
  background-position: 5px 7px, 5px 14px, 5px 21px;
  box-sizing: border-box;
  opacity: .95;
}

/* 图标占位后整体左移，保持与「官方论坛」的视觉重心一致 */
.mi-btn.btn-info span { text-indent: 0; }

.mi-btn.btn-info:hover { filter: brightness(1.12); }

.mi-mobile { position: relative; }

/* 二维码位（原站为 264×265 背景图，此处容器化以动态渲染） */
.mi-mobile .mi-mobile {
  width: 264px;
  height: 265px;
  position: absolute;
  top: 82px;
  z-index: 100;
  background: #fff;
  box-sizing: border-box;
  padding: 8px;
  display: none;
}

.mi-mobile .mi-mobile.is-open { display: block; }

.mi-mobile .mi-mobile.is-up {
  top: auto;
  bottom: 82px;
}

.mi-mobile .mi-mobile svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── 视频 ─────────────────────────────────────────────── */
.container .video {
  height: 603px;
  width: 1002px;
  color: #fff;
  overflow: hidden;
  background-size: 100% 100%;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  background-image: url(../img/pc/mi-video.jpg);
}

.container .video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.container .video .video-show {
  height: 140px;
  width: 140px;
  background: rgba(255, 255, 255, .92) url(../img/m/icon-sprite.png) 50% 4.385964912280702% no-repeat;
  background-size: 140px;
  border-radius: 50%;
  border: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -70px 0 0 -70px;
  cursor: pointer;
  transition: transform .18s ease;
}

.container .video:hover .video-show { transform: scale(1.06); }
.container .video.is-playing .video-show { display: none; }

/* ── 文案区块 ─────────────────────────────────────────── */
.area-wrap {
  width: 500px;
  float: right;
  text-align: left;
  color: #666;
}

.area-wrap.left { float: left; }
.section-06 .area-wrap { width: 560px; }

.area-wrap h2 {
  color: #444;
  font-size: 42px;
  padding: 105px 0 15px;
  font-weight: 500;
}

.area-wrap .desc {
  font-size: 16px;
  line-height: 1.8;
  color: #777;
}

.area-wrap .prompt {
  font-size: 24px;
  line-height: 1.5;
  color: #777;
}

/* 二维码位（原站为 280×280 背景图，此处容器化以动态渲染） */
.area-wrap .r-chart {
  margin-top: 40px;
  width: 280px;
  height: 280px;
  background: #fff;
  box-sizing: border-box;
  padding: 8px;
  position: relative;
}

.area-wrap .r-chart svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* 二维码主体 + 中心 logo（与原站一致：白色圆角底 + COK 图标，约占码面 30%） */
.qr-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.qr-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30.3%;
  height: 30.3%;
  transform: translate(-50%, -50%);
  background: #fff no-repeat center center;
  background-size: 94% 94%;
  border-radius: 12%;
  pointer-events: none;
}

/* ── 页脚 ─────────────────────────────────────────────── */
.container .footer-info {
  position: relative;
  padding: 35px 0 65px;
  font-size: 12px;
  text-align: center;
}

.container .info-text p {
  margin: 0;
  line-height: 20px;
}

.container .info-text a { color: #333; }
.container .info-text .sep { margin: 0 5px; }

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* ── 视频弹层 ─────────────────────────────────────────── */
.video-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 10000;
}

.video-mask.is-open { display: block; }

#mask_content {
  width: 1002px;
  margin: 0 auto;
  position: relative;
  top: 12vh;
}

#mask_content .video {
  width: 1002px;
  height: 603px;
  background: #000;
}

#closed {
  position: absolute;
  right: -36px;
  top: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

#closed .arrow {
  display: block;
  width: 100%;
  height: 100%;
  background: url(../img/m/jiantou.png) center no-repeat;
  background-size: contain;
}

/* ── 其他信息：独立公示页（info.html） ─────────────────── */
.info-page {
  min-height: 100%;
  background: #1a1410 url(../img/pc/mi-banner-04.jpg) center top no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
}

.info-page-body {
  width: 100%;
  min-height: 100%;
  background: rgba(12, 9, 7, .82);
  padding: 48px 16px 72px;
  box-sizing: border-box;
}

.info-sheet {
  width: 860px;
  max-width: 100%;
  margin: 0 auto;
  background: #f7f2e8;
  border: 1px solid #b8a184;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.info-sheet-head {
  padding: 22px 0;
  background: linear-gradient(180deg, #8c2d14 0%, #4f0f00 100%);
  text-align: center;
}

.info-sheet-head h1 {
  font-size: 24px;
  font-weight: 500;
  color: #f0d9b8;
  letter-spacing: 3px;
}

.info-sheet-body {
  padding: 32px 56px 44px;
}

/* 每一则公示独立成块，后续追加直接往下加 */
.info-notice + .info-notice {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px dashed #cdbca4;
}

.info-notice h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #4a3a2a;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #4a3a2a;
  background: #fff;
}

.info-table caption {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 700;
  color: #f0d9b8;
  background: linear-gradient(180deg, #8c2d14 0%, #4f0f00 100%);
}

.info-table th,
.info-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #ddd0bc;
  text-align: center;
}

.info-table th {
  font-weight: 500;
  color: #7a6047;
  background: #f2eadd;
  border-bottom: 1px solid #cdbca4;
}

.info-table tbody tr:last-child td { border-bottom: 0; }

.info-table td:last-child {
  width: 140px;
  color: #8c2d14;
  font-weight: 700;
}

.info-sheet-foot {
  padding: 0 56px 40px;
  text-align: center;
}

.info-back {
  display: inline-block;
  width: 264px;
  height: 82px;
  line-height: 82px;
  font-size: 20px;
  color: #f0d9b8;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
  background: url(../img/pc/button-info.png) no-repeat;
}

.info-back:hover { filter: brightness(1.12); }

/* ── 低宽屏：保持原站 min-width 1180 ─────────────────── */
@media screen and (max-width: 1180px) {
  html, body {
    overflow-x: auto;
    min-width: 1180px;
  }
}
