/* ========== 云扬传世官网 公共样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: #0d0705;
  color: #e8dcc8;
  min-width: 1200px;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; border: 0; }

.wrap { width: 1200px; margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: relative;
  z-index: 100;
  height: 82px;
  background: linear-gradient(180deg, #8f1414 0%, #6e0d0d 100%);
  border-bottom: 2px solid #caa25a;
  box-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.topbar .wrap { display: flex; align-items: center; height: 100%; }
.topbar .logo { height: 64px; margin-right: 30px; }
.topbar .logo img { height: 100%; width: auto; }
.topbar .nav { display: flex; flex: 1; height: 100%; }
.topbar .nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #f3e6cf;
  letter-spacing: 1px;
  transition: all .25s;
  position: relative;
}
.topbar .nav a:hover,
.topbar .nav a.active {
  color: #ffe9b0;
  background: rgba(0,0,0,.28);
  text-shadow: 0 0 12px rgba(255,200,90,.8);
}
.topbar .nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  background: #f0c96a;
  box-shadow: 0 0 8px #f0c96a;
}

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative;
  height: 920px;
  background: url("../img/hero.jpg") center top / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(13,7,5,.95));
}
.hero-age {
  position: absolute;
  right: 28px; bottom: 46px;
  z-index: 3;
  font-size: 14px;
  color: #57e06c;
  text-shadow: 0 1px 3px #000;
}

/* ---------- 首页中部三区 ---------- */
.home-mid {
  position: relative;
  z-index: 5;
  margin-top: -96px;
  padding-bottom: 46px;
}
.home-mid .wrap {
  display: flex;
  gap: 14px;
  background: rgba(20,10,6,.88);
  border: 1px solid #6b4c26;
  box-shadow: 0 10px 40px rgba(0,0,0,.7);
  padding: 14px;
}

/* 左：游戏下载入口 */
.dl-entry { width: 300px; flex: none; display: flex; flex-direction: column; }
.dl-red {
  flex: 1;
  min-height: 168px;
  background: linear-gradient(160deg, #c02020, #7c0d0d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.dl-red:hover { filter: brightness(1.15); }
.dl-red::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(255,220,150,.35);
  pointer-events: none;
}
.dl-red h3 { font-size: 30px; color: #fff; letter-spacing: 4px; }
.dl-red p { margin-top: 8px; font-size: 13px; color: #ffd9a0; letter-spacing: 3px; }
.dl-official {
  margin-top: 14px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #f3e6cf;
  background: #2a1409;
  border: 1px solid #6b4c26;
  transition: all .25s;
}
.dl-official:hover { color: #ffe9b0; border-color: #caa25a; background: #3a1d0c; }

/* 中：轮播（模糊背景填充 + 原图完整居中，不裁剪） */
.focus-box { flex: 1; min-width: 0; }
.focus-slider {
  position: relative;
  height: 242px;
  overflow: hidden;
  border: 1px solid #6b4c26;
  background: #000;
}
.focus-slider .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s;
}
.focus-slider .slide.on { opacity: 1; }
.focus-slider .slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(.45);
  transform: scale(1.25);
}
.focus-slider .slide-fg {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain;
}
.focus-dots {
  position: absolute;
  right: 12px; bottom: 10px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.focus-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .25s;
}
.focus-dots i.on { background: #f0c96a; box-shadow: 0 0 8px #f0c96a; }
.focus-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 34px; height: 52px;
  background: rgba(0,0,0,.45);
  color: #f0c96a;
  font-size: 22px;
  line-height: 52px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transition: all .25s;
}
.focus-slider:hover .focus-arrow { opacity: 1; }
.focus-arrow.prev { left: 0; }
.focus-arrow.next { right: 0; }

/* ---------- 精选推荐 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  margin: 40px 0 18px;
}
.section-head h2 {
  font-size: 26px;
  color: #f0c96a;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.section-head h2::before {
  content: "◆";
  margin-right: 10px;
  font-size: 16px;
  color: #c02020;
}
.section-head .en {
  margin-left: 14px;
  font-size: 13px;
  color: #8a7550;
  letter-spacing: 2px;
}
.recommend-row { display: flex; gap: 16px; }
.rec-main {
  width: 300px; flex: none;
  border: 1px solid #6b4c26;
  overflow: hidden;
  position: relative;
}
.rec-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rec-main:hover img { transform: scale(1.05); }
.rec-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rec-item {
  position: relative;
  border: 1px solid #6b4c26;
  overflow: hidden;
  height: 160px;
  cursor: pointer;
}
.rec-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rec-item:hover img { transform: scale(1.06); }
.rec-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: #ffe9b0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 50px;
  background: #080403;
  border-top: 1px solid #4a3418;
  padding: 34px 0 30px;
  text-align: center;
}
.footer .warn { color: #b0a08a; font-size: 14px; line-height: 1.9; }
.footer .warn b { color: #d8c9a8; }
.footer .links { margin: 14px 0; font-size: 13px; color: #8a7550; }
.footer .links a { margin: 0 12px; }
.footer .links a:hover { color: #f0c96a; }
.footer .copy { font-size: 12px; color: #6a5a40; line-height: 1.9; }

/* ---------- 子页通用 ---------- */
.page-banner {
  height: 300px;
  background: url("../img/hero.jpg") center 30% / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,5,3,.55);
}
.page-banner h1 {
  position: relative;
  font-size: 40px;
  letter-spacing: 10px;
  color: #ffe9b0;
  text-shadow: 0 4px 16px #000;
}
.page-banner h1 small {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: #c9b891;
  font-weight: normal;
}
.crumb {
  padding: 16px 0;
  font-size: 13px;
  color: #8a7550;
  border-bottom: 1px solid #3a2a14;
}
.crumb a:hover { color: #f0c96a; }

/* ---------- 下载页 ---------- */
.dl-hero {
  padding: 50px 0 40px;
  text-align: center;
}
.dl-hero .big-btn {
  display: inline-block;
  padding: 20px 90px;
  font-size: 26px;
  letter-spacing: 6px;
  color: #fff;
  background: linear-gradient(160deg, #d42a2a, #7c0d0d);
  border: 1px solid #f0c96a;
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(212,42,42,.4);
  transition: all .25s;
}
.dl-hero .big-btn:hover { transform: translateY(-3px); box-shadow: 0 0 44px rgba(212,42,42,.65); }
.dl-hero .ver { margin-top: 18px; font-size: 14px; color: #8a7550; }
.dl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.dl-card {
  border: 1px solid #6b4c26;
  background: rgba(20,10,6,.7);
  padding: 30px 24px;
  text-align: center;
}
.dl-card h3 { font-size: 20px; color: #f0c96a; letter-spacing: 2px; margin-bottom: 14px; }
.dl-card p { font-size: 13px; color: #a08a5e; line-height: 1.9; min-height: 50px; }
.dl-card .btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 40px;
  font-size: 15px;
  letter-spacing: 2px;
  color: #ffe9b0;
  border: 1px solid #caa25a;
  background: rgba(0,0,0,.35);
  transition: all .2s;
}
.dl-card .btn:hover { background: #caa25a; color: #1a0d05; }
.qr-box {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.qr-item {
  width: 220px;
  text-align: center;
  border: 1px solid #6b4c26;
  background: rgba(20,10,6,.7);
  padding: 20px;
}
.qr-item .qr {
  width: 160px; height: 160px;
  margin: 0 auto 14px;
  background:
    repeating-conic-gradient(#1a120a 0% 25%, #d8c9a8 0% 50%) 0 0 / 20px 20px;
  border: 6px solid #f5ecd8;
  filter: contrast(1.2);
}
.qr-item img.qr {
  background: #fff;
  filter: none;
  object-fit: contain;
}
.qr-item p { font-size: 14px; color: #c9b891; }
.dl-note {
  margin-top: 40px;
  padding: 24px 30px;
  border: 1px solid #6b4c26;
  background: rgba(20,10,6,.7);
  font-size: 14px;
  color: #a08a5e;
  line-height: 2;
}
.dl-note h4 { color: #f0c96a; font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }

/* ========== 响应式：移动端适配 ========== */

/* 平板及以下（≤992px） */
@media (max-width: 992px) {
  html, body { min-width: 0; }
  .wrap { width: auto; max-width: 1200px; margin: 0 12px; }

  /* 顶部导航 */
  .topbar { height: 60px; }
  .topbar .logo { height: 44px; margin-right: 12px; }
  .topbar .nav a { font-size: 14px; letter-spacing: 0; }

  /* 首页主视觉：高度随屏宽缩放 */
  .hero { height: 56vw; max-height: 920px; }
  .hero-age { right: 12px; bottom: 52px; font-size: 12px; }

  /* 中部两区：纵向堆叠 */
  .home-mid { margin-top: -40px; }
  .home-mid .wrap { flex-direction: column; }
  .dl-entry { width: 100%; }
  .dl-red { min-height: 120px; }
  .dl-red h3 { font-size: 24px; }
  .focus-arrow { opacity: 1; }

  /* 精选推荐 */
  .recommend-row { flex-direction: column; }
  .rec-main { width: 100%; max-width: 420px; margin: 0 auto; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* 子页 */
  .page-banner { height: 200px; }
  .page-banner h1 { font-size: 28px; letter-spacing: 6px; }

  /* 下载页 */
  .dl-cards { grid-template-columns: 1fr; gap: 16px; }
  .qr-box { flex-wrap: wrap; gap: 20px; }
  .dl-hero .big-btn { padding: 16px 50px; font-size: 20px; letter-spacing: 3px; }
}

/* 手机（≤600px） */
@media (max-width: 600px) {
  .topbar { height: 52px; }
  .topbar .logo { height: 36px; margin-right: 8px; }
  .topbar .nav a { font-size: 13px; }

  .section-head h2 { font-size: 20px; }
  .section-head .en { display: none; }

  .rec-grid { grid-template-columns: 1fr; }
  .rec-item { height: 46vw; }

  .dl-hero { padding: 30px 0 24px; }
  .dl-hero .big-btn { padding: 14px 36px; font-size: 17px; }
  .dl-hero .ver { font-size: 12px; padding: 0 10px; }
  .qr-item { width: 170px; padding: 14px; }
  .qr-item .qr { width: 120px; height: 120px; }
  .dl-note { padding: 16px; font-size: 13px; }

  .footer { padding: 24px 10px 20px; }
  .footer .warn { font-size: 12px; }
}
