/* ==================================================================
   Tabletop Arcade · 桌面街机 —— 全站设计系统
   四层材质：胡桃木桌面 → 奶白棋盘垫 → 卡牌纸方块 → 游戏封面
   ================================================================== */

:root {
  --nat-wood: #7a5230;
  --nat-wood-dark: #5c3c22;
  --nat-wood-line: #4a2e19;
  --nat-board: #f3e9d4;
  --nat-board-edge: #e2d3b6;
  --nat-card: #fdf8ec;
  --nat-card-edge: #ddcdaf;
  --nat-ink: #3a2c1e;
  --nat-ink-soft: #7a6752;
  --nat-tomato: #d64535;
  --nat-mustard: #e3a72b;
  --nat-teal: #2b8a86;
  --nat-plum: #7c4b93;
  --nat-cobalt: #2d5aa8;
  --nat-leaf: #4f8f3f;
  --nat-accent: #d64535;
  --nat-accent-deep: #a5331f;
  --nat-theme-ink: #3a2c1e;
  --nat-display: "Trebuchet MS", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --nat-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --nat-mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}

* {
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}

/* hidden 属性必须压过组件自身的 display，否则空态与加载态无法真正隐藏 */

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--nat-wood);
  color: var(--nat-ink);
  font-family: var(--nat-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.nat-shell {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

/* ---------------------- 顶部：桌边木条 ---------------------- */

.nat-top {
  background: -webkit-gradient(linear, left top, left bottom, from(#8a5f3c), to(#6b4728));
  background: -webkit-linear-gradient(top, #8a5f3c 0%, #6b4728 100%);
  background: linear-gradient(180deg, #8a5f3c 0%, #6b4728 100%);
  box-shadow: inset 0 -3px 0 rgba(74, 46, 25, 0.5), 0 6px 18px rgba(74, 46, 25, 0.35);
}

.nat-top__bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 18px;
  padding: 13px 0;
}

.nat-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 auto;
     -moz-box-flex: 0;
          flex: 0 1 auto;
  min-width: 0;
  gap: 12px;
}

.nat-brand__token {
  width: 44px;
  height: 44px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: -webkit-linear-gradient(290deg, #e3a72b, #c98a17);
  background: linear-gradient(160deg, #e3a72b, #c98a17);
  color: #3f2a12;
  font-family: var(--nat-display);
  font-size: 22px;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(90, 56, 30, 0.45), 0 4px 8px rgba(74, 46, 25, 0.4);
}

.nat-brand__text {
  display: block;
  min-width: 0;
}

.nat-brand__name {
  display: block;
  font-family: var(--nat-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fdf3e2;
}

.nat-brand__tag {
  display: block;
  font-family: var(--nat-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e9c78a;
}

.nat-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 auto;
     -moz-box-flex: 0;
          flex: 0 1 auto;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
}

.nat-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 246, 229, 0.92);
  color: #4a3421;
  font-family: var(--nat-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 rgba(74, 46, 25, 0.35);
}

.nat-nav a:hover,
.nat-nav a:focus-visible {
  background: var(--nat-mustard);
}

.nat-search {
  margin-left: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 300px;
     -moz-box-flex: 0;
          flex: 0 1 300px;
  min-width: 0;
  gap: 8px;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: rgba(60, 38, 20, 0.35);
}

.nat-search input {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
     -moz-box-flex: 1;
          flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fdf3e2;
  font-family: var(--nat-body);
  font-size: 13.5px;
  padding: 7px 0;
}

.nat-search input::-webkit-input-placeholder {
  color: #d9bd94;
}

.nat-search input::-moz-placeholder {
  color: #d9bd94;
}

.nat-search input::placeholder {
  color: #d9bd94;
}

.nat-search input:focus {
  outline: none;
}

.nat-search button {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--nat-mustard);
  color: #3f2a12;
  padding: 8px 18px;
  font-family: var(--nat-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nat-search button:hover {
  background: #ffc94d;
}

.nat-burger {
  display: none;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 246, 229, 0.92);
  color: #4a3421;
  width: 42px;
  height: 40px;
  font-size: 17px;
  cursor: pointer;
}

/* 骰子 */

.nat-dice {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 9px;
  padding: 10px 0 12px;
}

.nat-die {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fdf8ec;
  box-shadow: inset 0 -2px 0 rgba(74, 46, 25, 0.3), 0 3px 6px rgba(74, 46, 25, 0.4);
}

.nat-die i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b5442f;
}

.nat-die--1 i:nth-child(1) { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }

.nat-die--3 i:nth-child(1) { left: 4px; top: 4px; }

.nat-die--3 i:nth-child(2) { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }

.nat-die--3 i:nth-child(3) { right: 4px; bottom: 4px; }

.nat-die--5 i:nth-child(1) { left: 4px; top: 4px; }

.nat-die--5 i:nth-child(2) { right: 4px; top: 4px; }

.nat-die--5 i:nth-child(3) { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }

.nat-die--5 i:nth-child(4) { left: 4px; bottom: 4px; }

.nat-die--5 i:nth-child(5) { right: 4px; bottom: 4px; }

.nat-dice__note {
  font-family: var(--nat-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e2c294;
}

.nat-directory {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 8px;
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  padding: 4px 0 16px;
}

.nat-chip {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 246, 229, 0.92);
  color: #4a3421;
  font-family: var(--nat-display);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(74, 46, 25, 0.35);
}

.nat-chip:hover,
.nat-chip:focus-visible {
  background: var(--nat-mustard);
}

/* ---------------------- 棋盘垫 ---------------------- */

.nat-main {
  padding: 22px 0 10px;
  background-color: var(--nat-wood);
  background-image:
    -webkit-repeating-linear-gradient(88.5deg, rgba(90, 56, 30, 0.26) 0 2px, transparent 2px 9px, rgba(122, 82, 48, 0.42) 9px 11px, transparent 11px 26px),
    -webkit-repeating-linear-gradient(271deg, rgba(255, 232, 200, 0.05) 0 3px, transparent 3px 17px),
    -webkit-radial-gradient(ellipse 220px 70px at 22% 28%, rgba(74, 46, 25, 0.3) 0 40%, transparent 72%),
    -webkit-radial-gradient(ellipse 260px 80px at 78% 70%, rgba(74, 46, 25, 0.22) 0 40%, transparent 74%);
  background-image:
    repeating-linear-gradient(1.5deg, rgba(90, 56, 30, 0.26) 0 2px, transparent 2px 9px, rgba(122, 82, 48, 0.42) 9px 11px, transparent 11px 26px),
    repeating-linear-gradient(179deg, rgba(255, 232, 200, 0.05) 0 3px, transparent 3px 17px),
    radial-gradient(ellipse 220px 70px at 22% 28%, rgba(74, 46, 25, 0.3) 0 40%, transparent 72%),
    radial-gradient(ellipse 260px 80px at 78% 70%, rgba(74, 46, 25, 0.22) 0 40%, transparent 74%);
}

.nat-mat {
  position: relative;
  margin: 22px auto;
  padding: 26px 24px 30px;
  border-radius: 18px;
  background:
    -webkit-linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    -webkit-linear-gradient(left, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    -webkit-radial-gradient(18% 12%, circle, rgba(255, 255, 255, 0.5), transparent 55%),
    var(--nat-board);
  background:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.5), transparent 55%),
    var(--nat-board);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
  box-shadow: 0 16px 34px rgba(74, 46, 25, 0.35), inset 0 0 0 1px var(--nat-board-edge);
}

.nat-mat--hero {
  padding: 34px 30px 38px;
}

.nat-mat--dark {
  color: #f5ead7;
  background-color: #4a3421;
  background-image: -webkit-radial-gradient(20% 10%, circle, rgba(255, 226, 180, 0.12), transparent 55%);
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 226, 180, 0.12), transparent 55%);
  box-shadow: 0 16px 34px rgba(50, 31, 16, 0.45), inset 0 0 0 1px rgba(255, 226, 180, 0.16);
}

/* ---------------------- 分区标题牌 ---------------------- */

.nat-zone__head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.nat-zone__label {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--nat-tomato);
  color: #fff6ec;
  font-family: var(--nat-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(74, 46, 25, 0.3);
}

.nat-zone__count {
  font-family: var(--nat-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b755a;
}

.nat-zone__more {
  margin-left: auto;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--nat-card);
  color: #4a3421;
  font-family: var(--nat-display);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(74, 46, 25, 0.3);
}

.nat-zone__more::after {
  content: " →";
}

.nat-zone__more:hover,
.nat-zone__more:focus-visible {
  background: var(--nat-mustard);
}

.nat-mat--dark .nat-zone__label {
  background: var(--nat-mustard);
  color: #4a3410;
}

.nat-mat--dark .nat-zone__count {
  color: #c9ab84;
}

/* ---------------------- 桌游方块 ---------------------- */

.nat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
}

.nat-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nat-tile {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.nat-tile__card {
  position: relative;
  display: block;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: var(--nat-card);
  box-shadow: 0 4px 0 var(--nat-card-edge), 0 10px 20px rgba(74, 46, 25, 0.22);
  -webkit-transition: box-shadow 0.18s ease, -webkit-transform 0.18s ease;
  transition: box-shadow 0.18s ease, -webkit-transform 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease, -webkit-transform 0.18s ease;
}

.nat-tile:hover .nat-tile__card,
.nat-tile:focus-visible .nat-tile__card {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
  box-shadow: 0 6px 0 var(--nat-card-edge), 0 16px 26px rgba(74, 46, 25, 0.28);
}

.nat-tile__tab {
  position: absolute;
  top: -12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nat-tomato);
  color: #fff6ec;
  font-family: var(--nat-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 3px 6px rgba(74, 46, 25, 0.35);
}

.nat-tile__tab--1 { background: var(--nat-tomato); }

.nat-tile__tab--2 { background: var(--nat-mustard); color: #4a3410; }

.nat-tile__tab--3 { background: var(--nat-teal); }

.nat-tile__tab--4 { background: var(--nat-plum); }

.nat-tile__tab--5 { background: var(--nat-cobalt); }

.nat-tile__tab--6 { background: var(--nat-leaf); }

.nat-tile__cover {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #d9cdb6;
  box-shadow: inset 0 0 0 1px rgba(74, 46, 25, 0.18);
}

.nat-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.nat-tile__cover img.nat-loaded,
.nat-lazy-image.nat-loaded {
  opacity: 1;
}

.nat-tile__cover img.nat-image-error,
.nat-lazy-image.nat-image-error {
  opacity: 1;
}

.nat-tile__name {
  display: block;
  margin-top: 10px;
  font-family: var(--nat-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #3a2c1e;
  overflow-wrap: anywhere;
}

.nat-mat--dark .nat-tile__name {
  color: #3a2c1e;
}

.nat-tile__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--nat-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b755a;
  overflow-wrap: anywhere;
}

/* 发牌：方块依次落到桌面上 */

.is-dealt .nat-tile {
  -webkit-animation: nat-deal 0.42s ease both;
          animation: nat-deal 0.42s ease both;
  -webkit-animation-delay: var(--nat-deal-delay, 0ms);
          animation-delay: var(--nat-deal-delay, 0ms);
}

@-webkit-keyframes nat-deal {
  from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes nat-deal {
  from {
    opacity: 0;
    -webkit-transform: translateY(-12px);
            transform: translateY(-12px);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

/* ---------------------- 按钮 ---------------------- */

.nat-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--nat-tomato);
  color: #fff6ec;
  font-family: var(--nat-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--nat-accent-deep);
}

.nat-btn:hover,
.nat-btn:focus-visible {
  background: #e25444;
}

.nat-btn--leaf {
  background: var(--nat-leaf);
  box-shadow: 0 4px 0 #3a6b2e;
}

.nat-btn--leaf:hover,
.nat-btn--leaf:focus-visible {
  background: #5da24a;
}

.nat-btn--ghost {
  background: transparent;
  color: var(--nat-ink);
  box-shadow: inset 0 0 0 2px #b79a74;
}

.nat-btn--ghost:hover {
  background: rgba(58, 44, 30, 0.07);
}

/* ---------------------- 广告 ---------------------- */

.nat-ad-frame {
  margin: 16px auto;
  max-width: 100%;
  clear: both;
}

.nat-ad-slot {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  min-height: 250px;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 14px;
  background: rgba(253, 248, 236, 0.14);
  border: 1px dashed rgba(253, 248, 236, 0.5);
}

.nat-ad-label {
  text-align: center;
  font-family: var(--nat-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e9cfa4;
  margin-bottom: 6px;
}

/* ---------------------- 空状态 ---------------------- */

.nat-empty {
  padding: 34px 26px;
  text-align: center;
  border-radius: 18px;
  background: var(--nat-card);
  box-shadow: 0 4px 0 var(--nat-card-edge), 0 12px 24px rgba(74, 46, 25, 0.22);
}

.nat-empty h1,
.nat-empty h2 {
  margin: 0 0 10px;
  font-family: var(--nat-display);
  font-size: 26px;
  text-transform: uppercase;
  color: #3a2c1e;
}

.nat-empty p {
  margin: 0 0 18px;
  color: var(--nat-ink-soft);
}

/* ---------------------- 页脚 ---------------------- */

.nat-foot {
  background: -webkit-gradient(linear, left top, left bottom, from(#6b4728), to(#54381f));
  background: -webkit-linear-gradient(top, #6b4728 0%, #54381f 100%);
  background: linear-gradient(180deg, #6b4728 0%, #54381f 100%);
  color: #e8d3b2;
  box-shadow: inset 0 3px 0 rgba(255, 226, 180, 0.18);
}

.nat-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 34px 0 26px;
}

.nat-foot__title {
  margin: 0 0 14px;
  font-family: var(--nat-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e3a72b;
}

.nat-foot a {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: #e8d3b2;
}

.nat-foot a:hover {
  color: #ffc94d;
}

.nat-foot__brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nat-foot__brand .nat-brand__token {
  width: 34px;
  height: 34px;
  font-size: 17px;
}

.nat-foot__brand .nat-brand__name {
  font-family: var(--nat-display);
  font-size: 17px;
  text-transform: uppercase;
  color: #fdf3e2;
}

.nat-foot__brand .nat-brand__tag {
  display: none;
}

.nat-foot__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #cdb08a;
}

.nat-foot__bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0 24px;
  border-top: 1px solid rgba(255, 226, 180, 0.2);
  font-family: var(--nat-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #c2a781;
}

.nat-foot__bar a {
  margin: 0;
  display: inline;
}

/* ---------------------- 响应式：1050px ---------------------- */

@media (max-width: 1050px) {
  .nat-top__bar {
    gap: 14px;
  }

  .nat-nav {
    gap: 6px;
  }

  .nat-search {
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 220px;
       -moz-box-flex: 0;
            flex: 0 1 220px;
  }

  .nat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nat-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nat-mat {
    padding: 22px 18px 26px;
  }

  .nat-foot__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* ---------------------- 响应式：480px ---------------------- */

@media (max-width: 480px) {
  .nat-shell {
    width: min(100% - 24px, 1240px);
  }

  .nat-top__bar {
    gap: 12px;
  }

  .nat-brand {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
       -moz-box-flex: 1;
            flex: 1 1 auto;
    min-width: 0;
  }

  .nat-nav {
    display: none;
  }

  .nat-search {
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
       -moz-box-ordinal-group: 4;
            order: 3;
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 100%;
       -moz-box-flex: 1;
            flex: 1 0 100%;
    margin-left: 0;
  }

  .nat-burger {
    display: block;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    margin-left: auto;
  }

  .nat-directory {
    width: min(100% - 24px, 1240px);
  }

  .nat-dice {
    padding: 8px 0 10px;
  }

  .nat-main {
    padding: 16px 0 6px;
  }

  .nat-mat {
    margin: 16px auto;
    padding: 16px 14px 6px;
    border-radius: 14px;
  }

  .nat-mat--hero {
    padding: 22px 16px 24px;
  }

  .nat-grid,
  .nat-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  /* 首页每个分区只显示前六块，广告之间的内容距离才能落在 600–800px */
  .nat-grid--home .nat-tile:nth-child(n + 7) {
    display: none;
  }

  .nat-zone__head {
    gap: 6px 10px;
    margin-bottom: 12px;
  }

  .nat-zone__label {
    padding: 7px 13px;
    font-size: 14px;
  }

  .nat-zone__more {
    margin-left: 0;
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
       -moz-box-ordinal-group: 4;
            order: 3;
  }

  .nat-tile__name {
    font-size: 13.5px;
  }

  .nat-tile__meta {
    font-size: 9px;
  }

  .nat-foot__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nat-tile__card,
  .nat-tile__cover img {
    -webkit-transition: none;
    transition: none;
  }

  .nat-tile:hover .nat-tile__card,
  .nat-tile:focus-visible .nat-tile__card {
    -webkit-transform: none;
            transform: none;
  }

  .is-dealt .nat-tile {
    -webkit-animation: none;
            animation: none;
  }
}

