/* ==================== 主题变量 ==================== */
:root{
  --gold:#b8860b;
  --gold-l:#d4a72c;
  --gold-d:#8a5f1a;
  --bg:#ffffff;
  --bg2:#faf8f3;
  --line:rgba(184,134,11,.22);
  --txt:#3a3226;
  --txt-d:#7d7362;

  /* ---- 布局变量（新增） ---- */
  --wrap:1200px;      /* 内容最大宽度 */
  --gutter:16px;      /* 两侧留白 */
}

/* 平板：加大留白 */
@media (min-width:768px){
  :root{ --gutter:24px; }
}
/* 大屏：再加大留白 */
@media (min-width:1280px){
  :root{ --gutter:32px; }
}

/* ==================== 基础重置 ==================== */
*{
  margin:0;padding:0;box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  background:#ffffff;
}
body{
  width:100%;                 /* 取消 750px 定宽，改为铺满 */
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font:14px/1.8 "PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  overflow-x:hidden;
}

/* 极淡的复古质感（白底上几乎不可见，仅保留肌理） */
body::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:999;
  background:repeating-linear-gradient(to bottom,rgba(0,0,0,.012) 0 1px,transparent 1px 4px);
}
img{display:block;max-width:100%;border:0;}
a{color:inherit;text-decoration:none;}

/* ==================== HERO ==================== */
.hero{
  position:relative;
  width:100%;
  max-width:none;             /* 全屏铺满，不受内容容器约束 */
  margin:0;
  height:36vh;
  min-height:220px;
  max-height:300px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0 20px 16px;
  overflow:hidden;
  text-align:center;
}
/* 平板 */
@media (min-width:768px){
  .hero{
    height:46vh;
    min-height:340px;
    max-height:480px;
    padding-bottom:24px;
  }
}
/* 桌面 */
@media (min-width:1280px){
  .hero{
    height:58vh;
    min-height:440px;
    max-height:660px;
  }
}

.hero-bg{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  border:0;outline:0;
}
/* 遮罩：上方保留暗部让文字可读，底部过渡到纯白与正文无缝衔接 */
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,
      rgba(8,6,4,.62) 0%,
      rgba(8,6,4,.34) 55%,
      rgba(255,255,255,.72) 88%,
      #ffffff 100%);
}
.hero-content{
  position:relative;z-index:2;
  width:100%;
  max-width:900px;            /* 宽屏下文字不拉满，保持阅读舒适度 */
  margin:0 auto;
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:11px;letter-spacing:4px;
  color:#e5c98a;
  text-shadow:0 1px 6px rgba(0,0,0,.7);
  margin-bottom:10px;
}
.hero-eyebrow::before,.hero-eyebrow::after{
  content:"";width:28px;height:1px;
  background:linear-gradient(90deg,transparent,#e5c98a);
}
.hero-eyebrow::after{background:linear-gradient(90deg,#e5c98a,transparent);}

.hero h1{
  font-size:clamp(36px,12vw,54px);
  line-height:1.15;
  font-weight:900;
  letter-spacing:.12em;
  text-indent:.12em;
  color:transparent;
  background:linear-gradient(180deg,#fff8e2 0%,#e8c169 48%,#b8860b 100%);
  -webkit-background-clip:text;
  background-clip:text;
  filter:drop-shadow(0 2px 0 #2a1a05) drop-shadow(0 0 20px rgba(232,193,105,.5));
  animation:glow 3.2s ease-in-out infinite;
}
/* 宽屏放大标题 */
@media (min-width:768px){
  .hero h1{ font-size:clamp(48px,6.5vw,88px); }
  .hero-eyebrow{ font-size:12px; letter-spacing:7px; }
  .hero-desc{ font-size:15px; letter-spacing:5px; }
}
@keyframes glow{
  0%,100%{filter:drop-shadow(0 2px 0 #2a1a05) drop-shadow(0 0 14px rgba(232,193,105,.35));}
  50%{filter:drop-shadow(0 2px 0 #2a1a05) drop-shadow(0 0 28px rgba(232,193,105,.75));}
}
.hero-desc{
  margin-top:10px;
  font-size:13px;
  letter-spacing:3px;
  color:#f0e2c2;
  text-shadow:0 1px 8px rgba(0,0,0,.8);
}
.btn{
  display:inline-block;
  margin-top:20px;
  padding:11px 34px;
  font-size:14px;
  font-weight:700;
  letter-spacing:3px;
  color:#1a1007;
  background:linear-gradient(180deg,#fbe7b4,#d0a244);
  border-radius:3px;
  box-shadow:0 0 0 1px #6b4a17 inset,0 6px 20px rgba(184,134,11,.35);
  transition:transform .2s, box-shadow .2s;
}
.btn:active{transform:scale(.96);}
@media (min-width:768px){
  .btn{ padding:13px 46px; font-size:15px; margin-top:26px; }
}
/* 桌面悬停反馈 */
@media (hover:hover) and (pointer:fine){
  .btn:hover{
    transform:translateY(-2px);
    box-shadow:0 0 0 1px #6b4a17 inset,0 10px 26px rgba(184,134,11,.45);
  }
}

.hero-scroll{
  position:absolute;bottom:12px;left:50%;transform:translateX(-50%);
  z-index:2;font-size:11px;letter-spacing:3px;color:#9c8a6e;
  animation:float 1.8s ease-in-out infinite;
}
@keyframes float{0%,100%{opacity:.5;transform:translate(-50%,0);}50%{opacity:1;transform:translate(-50%,5px);}}

/* ==================== 通用区块（自动居中 + 最大宽度） ==================== */
section{
  width:100%;
  max-width:calc(var(--wrap) + 2 * var(--gutter));  /* 内容宽度恒为 --wrap */
  margin-left:auto;
  margin-right:auto;
  padding:36px var(--gutter);
}
@media (min-width:768px){
  section{ padding:48px var(--gutter); }
}
@media (min-width:1024px){
  section{ padding:60px var(--gutter); }
}

.sec-title{text-align:center;margin-bottom:22px;}
.sec-title h2{
  font-size:20px;letter-spacing:6px;text-indent:6px;
  color:var(--gold);font-weight:800;
  display:inline-flex;align-items:center;
}
.sec-title h2::before,.sec-title h2::after{
  content:"";width:24px;height:1px;margin:0 12px;
  background:linear-gradient(90deg,transparent,var(--gold-l));
}
.sec-title h2::after{background:linear-gradient(90deg,var(--gold-l),transparent);}
.sec-sub{
  margin-top:8px;font-size:12px;letter-spacing:2px;color:var(--txt-d);
}
@media (min-width:768px){
  .sec-title{ margin-bottom:32px; }
  .sec-title h2{ font-size:24px; letter-spacing:8px; text-indent:8px; }
  .sec-title h2::before,.sec-title h2::after{ width:40px; margin:0 16px; }
  .sec-sub{ font-size:13px; letter-spacing:3px; margin-top:10px; }
}
@media (min-width:1024px){
  .sec-title h2{ font-size:28px; }
}

/* ==================== 游戏攻略 ==================== */
.guide-list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width:640px){
  .guide-list{ grid-template-columns:repeat(2,1fr); gap:14px; }
}
@media (min-width:1024px){
  .guide-list{ grid-template-columns:repeat(3,1fr); gap:18px; }
}

.guide-card{
  position:relative;
  padding:15px 16px 15px 58px;
  border:1px solid var(--line);
  border-radius:4px;
  background:linear-gradient(135deg,#fdfbf6,#ffffff);
  overflow:hidden;
  transition:border-color .3s, box-shadow .3s, transform .3s;
}
.guide-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--gold-l),transparent);
}
.guide-num{
  position:absolute;left:15px;top:14px;
  font:700 20px/1 Georgia,"Times New Roman",serif;
  color:var(--gold);opacity:.75;
}
.guide-card h3{
  font-size:15px;color:var(--gold-d);letter-spacing:1px;
  margin-bottom:5px;font-weight:700;
}
.guide-card p{font-size:13px;color:var(--txt);line-height:1.9;}

@media (min-width:768px){
  .guide-card{ padding:18px 20px 18px 66px; }
  .guide-num{ left:18px; top:17px; font-size:22px; }
  .guide-card h3{ font-size:16px; }
  .guide-card p{ font-size:13.5px; }
}
@media (hover:hover) and (pointer:fine){
  .guide-card:hover{
    border-color:rgba(184,134,11,.5);
    box-shadow:0 10px 26px rgba(184,134,11,.14);
    transform:translateY(-3px);
  }
}

/* ==================== 装备展示 ==================== */
.equip-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
@media (min-width:640px){
  .equip-grid{ grid-template-columns:repeat(4,1fr); gap:10px; }
}
@media (min-width:1024px){
  .equip-grid{ grid-template-columns:repeat(6,1fr); gap:14px; }
}

.equip-grid figure{
  position:relative;
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  background:var(--bg2);
}
.equip-grid img{
  width:100%;
  height:auto;
  aspect-ratio:375 / 480;
  object-fit:cover;
  transition:transform .55s ease;
}
.equip-grid figure:active img{transform:scale(1.07);}
@media (hover:hover) and (pointer:fine){
  .equip-grid figure:hover img{ transform:scale(1.07); }
}
.equip-grid figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:20px 4px 7px;
  text-align:center;
  font-size:11px;letter-spacing:1px;color:#f3e2b8;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.85));
}
@media (min-width:768px){
  .equip-grid figcaption{ font-size:12px; padding:24px 6px 9px; }
}

/* ==================== 游戏展示（轮播） ==================== */
.slider{
  position:relative;
  width:100%;
  aspect-ratio:750 / 470;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:var(--bg2);
}
/* 宽屏：限宽居中，避免图片被拉得过高 */
@media (min-width:1024px){
  .slider{
    max-width:960px;
    margin:0 auto;
    border-radius:8px;
  }
}
.slide{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .9s ease;
}
.slide.active{opacity:1;}
.dots{
  position:absolute;left:0;right:0;bottom:12px;
  display:flex;justify-content:center;gap:8px;z-index:3;
}
.dot{
  width:7px;height:7px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.55);
  box-shadow:0 1px 4px rgba(0,0,0,.35);
  cursor:pointer;
  transition:all .3s;
}
.dot.active{
  width:20px;border-radius:4px;
  background:var(--gold-l);
  box-shadow:0 0 10px rgba(232,193,105,.9);
}
@media (min-width:768px){
  .dots{ bottom:16px; gap:10px; }
  .dot{ width:9px; height:9px; }
  .dot.active{ width:26px; }
}

/* ==================== 问答区域 ==================== */
.faq-list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:start;              /* 避免卡片被同行拉高 */
}
@media (min-width:900px){
  .faq-list{ grid-template-columns:repeat(2,1fr); gap:16px; }
}

.faq-item{
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:4px;
  background:#fdfcf9;
  transition:border-color .3s, box-shadow .3s;
}
.faq-item h3{
  font-size:14px;line-height:1.7;color:var(--gold-d);
  font-weight:700;margin-bottom:8px;
}
.faq-item h3::before{
  content:"问";
  display:inline-block;
  margin-right:8px;
  padding:1px 5px;
  font-size:11px;
  color:#ffffff;
  background:var(--gold);
  border-radius:2px;
  vertical-align:2px;
}
.faq-item p{
  font-size:13px;line-height:1.9;color:var(--txt);
  padding-left:2px;
}
.faq-item p::before{
  content:"答";
  display:inline-block;
  margin-right:8px;
  padding:1px 5px;
  font-size:11px;
  color:var(--gold-d);
  border:1px solid var(--gold-d);
  border-radius:2px;
  vertical-align:2px;
}
@media (min-width:768px){
  .faq-item{ padding:18px 20px; }
  .faq-item h3{ font-size:15px; }
  .faq-item p{ font-size:13.5px; }
}
@media (hover:hover) and (pointer:fine){
  .faq-item:hover{
    border-color:rgba(184,134,11,.45);
    box-shadow:0 8px 22px rgba(184,134,11,.1);
  }
}

/* ==================== 防沉迷提示 ==================== */
.notice{
  width:calc(100% - 2 * var(--gutter));
  max-width:var(--wrap);
  margin:0 auto;
  padding:20px 18px;
  border:1px dashed rgba(184,134,11,.45);
  border-radius:6px;
  text-align:center;
  background:#fdfbf6;
}
.notice h2{
  font-size:14px;letter-spacing:4px;color:var(--gold);
  margin-bottom:12px;font-weight:700;
}
.notice p{font-size:12px;line-height:2;color:var(--txt-d);}
.notice p + p{margin-top:4px;}
.notice strong{color:#c0392b;font-weight:700;}
@media (min-width:768px){
  .notice{ padding:30px 26px; }
  .notice h2{ font-size:16px; letter-spacing:6px; margin-bottom:16px; }
  .notice p{ font-size:13px; }
}

/* ==================== 页脚 ==================== */
footer{
  margin-top:30px;
  padding:24px var(--gutter) calc(34px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  text-align:center;
  background:#ffffff;
}
/* 页脚内容同样限宽居中 */
footer > *{
  max-width:var(--wrap);
  margin-left:auto;
  margin-right:auto;
}
footer .foot-logo{
  font-size:15px;letter-spacing:5px;color:var(--gold);
  margin-bottom:10px;
}
footer p{font-size:11.5px;line-height:2;color:#9a9081;}
footer a{color:#8a8173;}
@media (min-width:768px){
  footer{ margin-top:48px; padding-top:32px; }
  footer .foot-logo{ font-size:17px; letter-spacing:8px; }
  footer p{ font-size:12.5px; }
}