/* ============================================================
   未知鹿官网 · 移动端（< 1024px）
   设计稿基准：393px 宽
   1rem = 100 设计 px（393 视口下 1rem = 100px）
   → 设计稿 32px 写 0.32rem，345px 写 3.45rem
   ============================================================ */

@media (max-width: 1023.98px) {
  html {
    /* 393 设计宽 → 1rem = 100px；平板封顶 540px */
    font-size: calc(min(100vw, 540px) / 3.93);
  }

  body {
    font-size: 0.14rem;
    line-height: 1.5;
  }

  .container {
    width: 100%;
    max-width: 3.93rem;
    margin-inline: auto;
    padding-inline: 0.24rem;
  }

  section[id] {
    scroll-margin-top: 0.6rem;
  }

  /* ---------- 固定导航 ---------- */

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: #fff;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 3.93rem;
    height: 0.6rem;
    margin-inline: auto;
    padding-inline: 0.24rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.0968rem;
    flex: none;
  }

  .brand-mark {
    position: relative;
    display: block;
    width: 0.3548rem;
    height: 0.3548rem;
    overflow: hidden;
    border-radius: 0.0852rem;
    background: #fff;
  }

  .brand-mark img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0.3094rem;
    height: 0.3094rem;
    transform: translateX(-50%);
  }

  .brand-word--desktop {
    display: none;
  }

  .brand-word--mobile {
    display: block;
    width: 0.5523rem;
    height: auto;
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    position: relative;
    display: block;
    width: 0.24rem;
    height: 0.24rem;
    flex: none;
  }

  .nav-toggle__icon {
    width: 100%;
    height: 100%;
  }

  .nav-toggle__close {
    position: absolute;
    inset: 0;
    display: none;
  }

  .nav-toggle__close::before,
  .nav-toggle__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.18rem;
    height: 0.015rem;
    border-radius: 2px;
    background: var(--ink);
    content: "";
  }

  .nav-toggle__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-toggle__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0.6rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    padding: 0.32rem 0.24rem calc(0.32rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: #fff;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu li + li {
    border-top: 1px solid var(--line-soft);
  }

  .mobile-menu li a {
    display: block;
    padding: 0.16rem 0;
    color: var(--ink);
    font-size: 0.16rem;
    line-height: 0.24rem;
  }

  .mobile-menu .btn {
    height: 0.44rem;
    padding: 0 0.2rem;
    font-size: 0.14rem;
  }

  /* ---------- Hero ---------- */

  .hero {
    position: relative;
    height: 7.2rem;
    padding-top: 0.6rem;
    overflow: hidden;
    background: #fff;
  }

  .hero-art {
    position: absolute;
    top: 0.6rem;
    left: 0;
    width: 100%;
    height: 4.5rem;
    overflow: hidden;
  }

  .hero-art img {
    position: absolute;
    top: 0;
    left: -133.88%;
    width: 274.94%;
    max-width: none;
    height: 100%;
    object-fit: cover;
  }

  .hero-fade--left,
  .hero-fade--right {
    display: none;
  }

  .hero-fade--bottom {
    position: absolute;
    top: 4.75rem;
    left: 0;
    width: 100%;
    height: 0.35rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  }

  .br-mobile {
    display: inline;
  }

  .hero-inner {
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.28rem;
    font-weight: 700;
    line-height: 0.4rem;
  }

  .hero-desc {
    margin-top: 0.12rem;
    white-space: nowrap;
    color: var(--text);
    font-size: 0.14rem;
    line-height: 0.22rem;
  }

  .hero-actions {
    margin-top: 0.2rem;
  }

  .hero-buttons {
    display: flex;
    gap: 0.12rem;
  }

  .hero-buttons .btn {
    flex: 1;
    height: 0.44rem;
    padding: 0 0.2rem;
    font-size: 0.14rem;
    line-height: 0.2rem;
  }

  .hero-note {
    margin-top: 0.12rem;
    color: rgba(29, 29, 31, 0.7);
    font-size: 0.12rem;
    line-height: 0.18rem;
  }

  /* ---------- 通用区块 ---------- */

  .explore,
  .companions,
  .features,
  .about,
  .business,
  .download,
  .faq {
    padding: 0.4rem 0 0.6rem;
  }

  .contact {
    padding: 0.4rem 0;
  }

  .section-title {
    margin-top: 0.08rem;
    font-size: 0.32rem;
    line-height: 0.44rem;
  }

  .section-sub {
    margin-top: 0.08rem;
    font-size: 0.16rem;
    line-height: 0.28rem;
  }

  /* ---------- 02 探索 ---------- */

  .explore .section-sub,
  .about-sub {
    color: var(--muted);
  }

  .explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.16rem;
    margin-top: 0.32rem;
  }

  .explore-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    min-height: 2.32rem;
    padding: 0.2rem 0;
    border-radius: 0.8rem;
    background: linear-gradient(to bottom, #f5f5f5, #fff);
    text-align: center;
  }

  .explore-icon {
    width: 1rem;
    height: 1rem;
  }

  .explore-name {
    color: var(--ink);
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 0.28rem;
  }

  .explore-text {
    color: var(--body);
    font-size: 0.14rem;
    line-height: 0.24rem;
  }

  /* ---------- 03 三只小鹿 ---------- */

  .companions {
    background: var(--bg-gray);
  }

  .companion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.16rem;
    margin-top: 0.32rem;
  }

  .companion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 1.6rem;
    padding: 0.16rem 0.2rem;
    border-radius: 0.12rem;
    background: #fff;
    box-shadow: 0 0 8px rgba(224, 192, 255, 0.2);
  }

  .companion-card:first-child {
    grid-column: 1 / -1;
  }

  .companion-name {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    width: 100%;
    color: var(--purple-card);
    font-family: var(--font-serif);
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 0.29rem;
    text-align: left;
  }

  .bullet {
    display: block;
    width: 0.04rem;
    height: 0.04rem;
    border-radius: 50%;
    background: var(--purple-card);
    flex: none;
  }

  .companion-art {
    width: 100%;
    overflow: hidden;
  }

  .companion-art--zhizhiwe {
    aspect-ratio: 264 / 256.35;
  }

  .companion-art--jingzhe {
    aspect-ratio: 276 / 256;
  }

  .companion-art--nanfeng {
    aspect-ratio: 232 / 256;
  }

  .companion-art img {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .companion-role {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 0.29rem;
    text-align: center;
  }

  .companion-desc {
    color: var(--body);
    font-size: 0.14rem;
    line-height: 0.24rem;
    text-align: center;
  }

  .companion-card:nth-child(2) .companion-desc {
    min-height: 0.72rem;
  }

  .companion-cta {
    width: 100%;
    height: 0.44rem;
    margin-top: 0.32rem;
    font-size: 0.14rem;
    line-height: 0.2rem;
  }

  /* ---------- 04 功能 ---------- */

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.12rem 0.16rem;
    margin-top: 0.32rem;
  }

  .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
    padding: 0.06rem 0.06rem 0.12rem;
    border-radius: 0.24rem;
    background: linear-gradient(to bottom, #fff, #f5f5f5);
  }

  .feature-art {
    width: 100%;
    aspect-ratio: 1448 / 1086;
    overflow: hidden;
    border-radius: 0.08rem;
  }

  .feature-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .feature-name {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 0.29rem;
    text-align: center;
  }

  .feature-text {
    color: var(--body);
    font-size: 0.12rem;
    line-height: 0.22rem;
    text-align: center;
  }

  .subsection-head {
    margin-top: 0.32rem;
    text-align: center;
  }

  .subsection-title {
    font-size: 0.22rem;
    line-height: 0.32rem;
  }

  .subsection-sub {
    margin-top: 0.08rem;
    font-size: 0.16rem;
    line-height: 0.28rem;
  }

  .game-grid {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    margin-top: 0.32rem;
  }

  .game-card {
    display: flex;
    align-items: center;
    gap: 0.26rem;
    width: 100%;
    padding: 0.16rem 0.16rem 0.24rem 0.24rem;
    border-radius: 0.24rem;
    background: linear-gradient(to left, #fff, #f5f5f5);
  }

  .game-art {
    flex: none;
    height: 1rem;
  }

  .game-art--coin {
    width: 0.94rem;
  }

  .game-art--muyu {
    width: 1.135rem;
    height: 0.8975rem;
  }

  .game-art--book {
    width: 1.3333rem;
  }

  .game-art--coin img,
  .game-art--book img,
  .game-art--muyu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
  }

  .game-copy {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
  }

  .game-name {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .game-text {
    color: var(--body);
    font-size: 0.14rem;
    line-height: 0.22rem;
  }

  /* ---------- 05 公司介绍 ---------- */

  .about {
    position: relative;
    background: var(--bg-gray);
  }

  .about-bg,
  .about-signature {
    display: none;
  }

  .about-copy {
    position: relative;
    z-index: 1;
  }

  .about-sub {
    margin-top: 0.08rem;
    font-size: 0.16rem;
    line-height: 0.28rem;
  }

  .about-body {
    margin-top: 0.08rem;
    color: var(--text);
    font-family: "PingFang SC", var(--font-sans);
    font-size: 0.14rem;
    line-height: 0.24rem;
  }

  .about-body p + p {
    margin-top: 0;
  }

  /* ---------- 06 业务方向 ---------- */

  .business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.16rem;
    margin-top: 0.32rem;
  }

  .business-card {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    min-height: 1.6rem;
    padding: 0.16rem 0.2rem;
    border: 1px solid var(--line);
    border-radius: 0.12rem;
    background: rgba(255, 255, 255, 0.75);
  }

  .business-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 0.12rem;
    background: linear-gradient(to right, #f5f2fe, #ece8fd);
  }

  .business-icon img {
    width: 0.28rem;
    height: 0.28rem;
  }

  .business-name {
    color: var(--ink);
    font-size: 0.16rem;
    font-weight: 700;
    line-height: 0.28rem;
  }

  .business-text {
    color: var(--body);
    font-size: 0.14rem;
    line-height: 0.24rem;
  }

  /* ---------- 07 下载 ---------- */

  .download {
    background: var(--bg-gray);
  }

  .download-inner {
    position: relative;
  }

  .download-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.24rem;
  }

  .qr {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
  }

  .qr-img {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.06rem;
    background: #fff;
    object-fit: cover;
  }

  .qr-note {
    color: var(--body);
    font-size: 0.12rem;
    line-height: 0.2rem;
    text-align: center;
  }

  .stores {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    width: 100%;
  }

  .store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    width: 100%;
    padding: 0.12rem 0.24rem;
    border-radius: 0.91rem;
  }

  .store--primary {
    background: var(--purple);
  }

  .store--secondary {
    border: 1px solid #d5cdef;
    background: rgba(255, 255, 255, 0.75);
  }

  .store > img {
    width: 0.32rem;
    height: 0.32rem;
  }

  .store-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.24rem;
  }

  .store-name {
    color: var(--ink);
    font-size: 0.16rem;
    font-weight: 500;
  }

  .store--primary .store-name {
    color: #fff;
  }

  .store-hint {
    color: var(--muted);
    font-size: 0.14rem;
  }

  .store--primary .store-hint {
    color: #f2eeff;
  }

  .download-phones {
    width: 100%;
    max-width: 3.45rem;
    margin-top: 0.24rem;
    overflow: hidden;
    aspect-ratio: 345 / 235;
  }

  .download-phones img {
    width: 102.04%;
    max-width: none;
    height: 100%;
  }

  .download-signature {
    display: none;
  }

  /* ---------- 08 常见问题 ---------- */

  .faq-list {
    margin-top: 0.24rem;
  }

  .faq-item + .faq-item {
    margin-top: 0.08rem;
  }

  .faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.16rem;
    width: 100%;
    min-height: 0.44rem;
    padding: 0 0.16rem 0 0.2rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.08rem;
    background: rgba(255, 255, 255, 0.6);
    color: #3b3c51;
    font-size: 0.14rem;
    line-height: 0.24rem;
    text-align: left;
  }

  .faq-trigger > span {
    flex: 1;
  }

  .faq-icon {
    flex: none;
    width: 0.24rem;
    height: 0.24rem;
    color: #8a8a94;
  }

  .faq-icon__close {
    display: none;
  }

  .faq-item.is-open .faq-icon__close {
    display: block;
  }

  .faq-item.is-open .faq-icon__plus {
    display: none;
  }

  .faq-panel {
    display: none;
    padding: 0 0.24rem;
    color: #3b3c51;
    font-size: 0.14rem;
    line-height: 0.24rem;
  }

  .faq-item.is-open .faq-panel {
    display: block;
    margin-top: 0.08rem;
  }

  .faq-panel p + p {
    margin-top: 0.08rem;
  }


  /* ---------- 09 联系 ---------- */

  .contact .section-sub {
    font-size: 0.14rem;
    line-height: 0.22rem;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    margin-top: 0.16rem;
  }

  .contact-card {
    min-height: 0.95rem;
    padding: 0.24rem;
    border: 1px solid var(--line-soft);
    border-radius: 0.16rem;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .contact-card:last-child {
    min-height: 1.14rem;
  }

  .contact-label {
    color: #1a1a2e;
    font-size: 0.11rem;
    line-height: 0.165rem;
    letter-spacing: 0.275px;
  }

  .contact-value {
    margin-top: 0.08rem;
    color: var(--ink);
    font-size: 0.14rem;
    font-weight: 500;
    line-height: 0.1925rem;
  }

  /* ---------- Footer ---------- */

  .site-footer {
    padding: 0.25rem 0 0.23rem;
    border-top: 1px solid #eae7f5;
    background: var(--bg-gray);
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.12rem;
  }

  .footer-mark {
    display: block;
    width: 0.24rem;
    height: 0.24rem;
    overflow: hidden;
    border-radius: 0.0576rem;
    background: #fff;
  }

  .footer-mark img {
    width: 0.2093rem;
    height: 0.2093rem;
    margin: 0.0154rem auto 0;
  }

  .footer-brand > img {
    width: 0.44rem;
    height: 0.1936rem;
  }

  .copyright {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.12rem;
    line-height: 0.16rem;
    text-align: center;
  }

  .copyright .icp-link {
    display: block;
  }

  .copyright .icp-link:hover {
    color: var(--purple);
  }

  .footer-links {
    display: flex;
    gap: 0.2rem;
  }

  .footer-links a {
    color: var(--muted);
    font-size: 0.12rem;
    line-height: 0.16rem;
  }
}
