/* 手机端 / 平板优化层（在 style.css / pages.css 之后加载，只做覆盖，不改原文件） */
html, body { overflow-x: hidden; }
img { max-width: 100%; }

/* 汉堡按钮（桌面隐藏） */
.nav { position: relative; }
.nav-burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 44px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-burger i {
  display: block; width: 18px; height: 2px; background: var(--grey); position: relative;
}
.nav-burger i:before, .nav-burger i:after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--grey);
}
.nav-burger i:before { top: -6px; }
.nav-burger i:after { top: 6px; }

/* ---------- 平板 ---------- */
@media (max-width: 1180px) {
  .nav-inner { padding: 12px 22px; gap: 18px; }
  .hero { padding: 60px 22px 44px; gap: 38px; }
  .stats { padding: 0 22px 52px; }
  .how, .gallery, .verify, .tiers, .wallets, .faq, .auction { padding: 60px 22px; }
  .wall-head, .wall-wrap { padding-left: 22px; padding-right: 22px; }
  .foot-inner { padding: 34px 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tier-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .how h2, .gallery h2, .verify h2, .tiers h2, .wallets h2, .faq h2 { font-size: 32px; }
  .stone-layout { padding: 46px 22px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.62; }

  /* 导航收成汉堡 */
  .nav-inner { padding: 10px 14px; gap: 12px; }
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 6px 14px 14px;
    background: #0E0E0E; border-bottom: 1px solid var(--line); z-index: 30;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px 2px; border-bottom: 1px solid #1A1A1E; font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-inner > .btn { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 12px; width: 100%; justify-content: center; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { height: 20px; }

  /* 首屏 */
  .hero { padding: 34px 16px 26px; gap: 26px; }
  .hero h1 { font-size: clamp(38px, 13vw, 60px); letter-spacing: -.01em; }
  .hero:before { display: none; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; margin-bottom: 18px; }
  .lead { font-size: 16.5px; margin-top: 18px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
  .btn { width: 100%; padding: 16px 18px; font-size: 15px; }
  .trust { font-size: 14px; gap: 8px; }

  /* 数据条：两列 */
  .stats { grid-template-columns: 1fr 1fr; padding: 0 16px 34px; gap: 8px 14px; }
  .stats div { padding: 18px 0; }
  .stats b { font-size: 24px; }
  .stats span { font-size: 10.5px; letter-spacing: .1em; }

  /* 通用区块 */
  .how, .gallery, .verify, .tiers, .wallets, .faq, .auction { padding: 46px 16px; }
  .how h2, .gallery h2, .verify h2, .tiers h2, .wallets h2, .faq h2 { font-size: 27px; }
  .gallery-head { gap: 14px; }
  .gallery-head p, .wallets-lead { font-size: 15.5px; }

  /* 拍卖面板 */
  .panel { padding: 14px; border-radius: 16px; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .clock { margin: 16px 2px 2px; }
  .clock-num { font-size: 42px; }
  .bid-row { gap: 26px; margin: 6px 2px 16px; }
  .bid-row b { font-size: 22px; }
  .auction-copy h2 { font-size: 27px; }
  .auction-copy p { font-size: 16.5px; }
  .ticks li { font-size: 15.5px; padding: 12px 0; }

  /* 品阶 / 石头墙 */
  .tier-row { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
  .tier { padding: 12px; }
  .tier h3 { font-size: 17px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
  .card { padding: 10px; border-radius: 12px; }
  .card h3 { font-size: 15.5px; margin: 12px 0 8px; }
  .card dl { grid-template-columns: 1fr; gap: 8px; }
  .card dd { font-size: 14px; }
  .tag, .tier { font-size: 11px; padding: 5px 8px; }
  .block { font-size: 11.5px; }

  /* 步骤 / 钱包 / FAQ / 代码 */
  .steps article { padding: 22px; }
  .steps h3 { font-size: 21px; }
  .wallet-grid article { padding: 22px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq details { padding: 18px; }
  .faq summary { font-size: 16.5px; }
  pre { padding: 16px; border-radius: 12px; }
  pre code { font-size: 11.5px; line-height: 1.7; }
  code { font-size: 12.5px; word-break: break-all; }

  /* 全墙 */
  .wall-head { padding: 34px 16px 8px; }
  .wall-head h1 { font-size: clamp(40px, 14vw, 64px); }
  .wall-lead { font-size: 15.5px; }
  .filters { gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-top: 20px; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: 9px 14px; font-size: 13px; }
  .jump { flex: none; width: 132px; padding: 10px 12px; font-size: 13px; }
  .wall-wrap { padding: 20px 16px 56px; }
  .wall-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wall-card { padding: 4px; border-radius: 8px; }
  .wall-meta { font-size: 10px; padding: 5px 2px 1px; }
  .wall-meta i { font-size: 8.5px; letter-spacing: .04em; }
  #more { margin-top: 22px; }

  /* 单石详情 */
  .stone-layout { padding: 22px 16px; gap: 22px; }
  .stone-art { padding: 12px; border-radius: 16px; }
  .stone-badges { margin-bottom: 10px; }
  .stone-info h1 { font-size: 27px; }
  .stone-desc { font-size: 15.5px; }
  .attr-table { grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
  .attr-table div { padding: 11px 13px; }
  .attr-table dd { font-size: 15px; }
  .stone-block { padding: 15px 0; }
  .stone-block b { font-size: 19px; }
  .payload { flex-direction: column; align-items: flex-start; gap: 14px; }
  .payload img { width: 120px; height: 120px; }

  /* 页脚 */
  .foot-inner { padding: 28px 16px; gap: 18px; }
  .foot-meta { font-size: 13px; line-height: 1.8; }
}

/* ---------- 小屏（SE 等） ---------- */
@media (max-width: 400px) {
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .how h2, .gallery h2, .verify h2, .tiers h2, .wallets h2, .faq h2 { font-size: 24px; }
  .clock-num { font-size: 36px; }
}
