/* ==========================================================================
   小魅魔 · 中转站
   响应式单页：移动端与 PC 端共用同一路由（/），无 .html 后缀
   - 基础样式为移动端（H5），使用 vw + rem 自适应
   - @media (min-width: 768px) 切换为 PC 布局
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* 750px 设计稿：1rem = 100px */
  font-size: 13.333333vw;
}

@media (min-width: 750px) {
  html {
    font-size: 100px;
  }
}

body {
  min-height: 100vh;
  background: #2b2a2a;
  color: #fff;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  width: 100%;
  max-width: 7.5rem;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

/* 背景层 ------------------------------------------------------------------ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/mobile-bg.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

/* 顶部提示条 ------------------------------------------------------------- */
.top-bar {
  position: relative;
  z-index: 2;
  height: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 0 0.32rem;
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* 主体内容 --------------------------------------------------------------- */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.81rem 0.45rem 0.8rem;
}

/* 品牌 / 标语区 ---------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  display: block;
  width: 4.2rem;
  height: auto;
}

.hero-slogan {
  display: block;
  width: 5.6rem;
  height: auto;
  margin-top: 0.2rem;
}

.hero-free {
  display: block;
  width: 3rem;
  height: auto;
  margin-top: 0.14rem;
}

/* 线路按钮 --------------------------------------------------------------- */
.routes {
  width: 100%;
  margin-top: 0.79rem;
  display: flex;
  flex-direction: column;
  gap: 0.27rem;
}

.route-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1rem;
  border: 1px solid #f85544;
  border-radius: 0.19rem;
  background: #1d1d1d;
  color: #fff;
  font-size: 0.28rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.route-btn:active {
  background: #2a2a2a;
  border-color: #ff8186;
}

/* 底部说明 --------------------------------------------------------------- */
.tips {
  width: 5.6rem;
  margin-top: 0.46rem;
  font-size: 0.22rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: #fff;
}

/* ==========================================================================
   PC 布局
   ========================================================================== */
@media (min-width: 768px) {
  body {
    background: #2b2a2a;
  }

  .page {
    max-width: none;
    min-height: 100vh;
  }

  .bg-layer {
    background-image: url('../assets/pc-bg.png');
    background-position: center center;
  }

  .top-bar {
    height: 61px;
    padding: 0 24px;
    font-size: 18px;
  }

  .content {
    min-height: calc(100vh - 61px);
    padding: 72px 24px 48px;
  }

  .hero-logo {
    width: 375px;
  }

  .hero-slogan {
    width: 344px;
    margin-top: 17px;
  }

  .hero-free {
    width: 232px;
    margin-top: 6px;
  }

  .routes {
    width: 100%;
    max-width: 440px;
    margin-top: 42px;
    gap: 24px;
  }

  .route-btn {
    height: 66px;
    border-radius: 13px;
    font-size: 18px;
    transition: background 0.2s ease, border-color 0.2s ease,
      transform 0.2s ease;
  }

  .route-btn:hover {
    background: #262626;
    border-color: #ff8186;
    transform: translateY(-1px);
  }

  .tips {
    width: 100%;
    max-width: 440px;
    margin-top: 42px;
    font-size: 14px;
    line-height: 1.7;
  }
}
