html,
body {
  margin: 0;
  min-height: 100%;
}

:root {
  --tfh-bg: #f6f8fa;
  --tfh-surface: #fff;
  --tfh-surface-strong: #fff;
  --tfh-panel: #f8fafc;
  --tfh-panel-strong: #f1f5f9;
  --tfh-border: #e2e8f0;
  --tfh-border-strong: #cbd5e1;
  --tfh-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  --tfh-shadow-lift: 0 8px 24px rgba(15, 23, 42, 0.08);
  --tfh-text: #0f172a;
  --tfh-muted: #64748b;
  --tfh-soft: #475569;
  --tfh-accent: #2563eb;
  --tfh-accent-soft: rgba(37, 99, 235, 0.08);
  --tfh-accent-border: rgba(37, 99, 235, 0.35);
  --tfh-link: #1d4ed8;
}

body.tfhideout-page {
  background: var(--tfh-bg);
  color: var(--tfh-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

body.tfhideout-page img {
  max-width: 100%;
}

.tfhideout-main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.tfhideout-hero,
.tfhideout-priority,
.tfhideout-toolbar,
.tfhideout-card,
.tfhideout-level,
.tfhideout-detail-section {
  border: 1px solid var(--tfh-border);
  border-radius: 14px;
  background: var(--tfh-surface-strong);
  box-shadow: var(--tfh-shadow);
}

.tfhideout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
}

.tfhideout-hero h1 {
  margin: 0;
  color: var(--tfh-text);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tfhideout-hero p {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--tfh-muted);
  font-size: 14px;
  line-height: 1.8;
}

.tfhideout-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tfh-accent-soft);
  color: var(--tfh-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.tfhideout-detail .tfhideout-kicker {
  color: transparent;
  font-size: 0;
  user-select: none;
}

.tfhideout-detail .tfhideout-kicker::before {
  content: "模块详情";
  color: var(--tfh-accent);
  font-size: 12px;
  font-weight: 800;
}

.tfhideout-hero dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  margin: 0;
  align-self: stretch;
}

.tfhideout-detail .tfhideout-hero dl {
  grid-column: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.tfhideout-hero dl div {
  padding: 14px;
  border: 1px solid var(--tfh-border);
  border-radius: 12px;
  background: var(--tfh-panel);
}

.tfhideout-hero dt {
  color: var(--tfh-soft);
  font-size: 12px;
  font-weight: 700;
}

.tfhideout-hero dd {
  margin: 6px 0 0;
  color: var(--tfh-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.tfhideout-hero-image {
  width: 104px;
  height: 104px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 14px;
  border: 1px solid var(--tfh-border);
  border-radius: 14px;
  background: var(--tfh-panel);
}

.tfhideout-detail .tfhideout-hero {
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: start;
}

.tfhideout-detail .tfhideout-hero > div {
  min-width: 0;
}

.tfhideout-detail .tfhideout-hero .tfhideout-hero-image {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.tfhideout-priority {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.tfhideout-priority article {
  padding: 14px;
  border: 1px solid var(--tfh-border);
  border-radius: 12px;
  background: var(--tfh-panel);
}

.tfhideout-priority strong,
.tfhideout-card strong,
.tfhideout-item strong,
.tfhideout-craft strong {
  display: block;
  color: var(--tfh-text);
  font-weight: 800;
  line-height: 1.4;
}

.tfhideout-priority span,
.tfhideout-card p,
.tfhideout-card em,
.tfhideout-item em,
.tfhideout-craft em,
.tfhideout-empty {
  color: var(--tfh-muted);
  font-size: 13px;
  line-height: 1.65;
}

.tfhideout-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 16px;
  padding: 18px;
}

.tfhideout-toolbar h2,
.tfhideout-detail-section h2 {
  margin: 0;
  color: var(--tfh-text);
  font-size: 22px;
  font-weight: 800;
}

.tfhideout-toolbar h2::before {
  content: "快速入口";
  display: block;
  margin-bottom: 6px;
  color: var(--tfh-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.tfhideout-toolbar p {
  margin: 0;
  max-width: 620px;
  color: var(--tfh-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.tfhideout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.tfhideout-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: var(--tfh-border);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background-color .16s ease;
}

.tfhideout-card:hover {
  transform: translateY(-2px);
  border-color: var(--tfh-accent-border);
  box-shadow: var(--tfh-shadow-lift);
}

.tfhideout-card__main,
.tfhideout-item,
.tfhideout-craft {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.tfhideout-card__main span,
.tfhideout-item span,
.tfhideout-craft span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tfhideout-card__main img,
.tfhideout-item img,
.tfhideout-craft img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--tfh-border);
  border-radius: 12px;
  background: var(--tfh-panel);
}

.tfhideout-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.tfhideout-card dl div {
  padding: 10px;
  border: 1px solid var(--tfh-border);
  border-radius: 10px;
  background: var(--tfh-panel);
}

.tfhideout-card dt {
  color: var(--tfh-soft);
  font-size: 12px;
  font-weight: 700;
}

.tfhideout-card dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--tfh-text);
  overflow-wrap: anywhere;
}

.tfhideout-card p {
  margin: 0;
  min-height: 42px;
  padding-top: 10px;
  border-top: 1px solid var(--tfh-border);
}

.tfhideout-card__actions,
.tfhideout-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tfhideout-card__actions a,
.tfhideout-jump a,
.tfhideout-breadcrumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--tfh-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--tfh-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color .16s ease,
    color .16s ease,
    background-color .16s ease,
    transform .16s ease;
}

.tfhideout-card__actions a:first-child {
  background: var(--tfh-accent);
  border-color: var(--tfh-accent);
  color: #fff;
}

.tfhideout-card__actions a:hover,
.tfhideout-card__actions a:focus-visible,
.tfhideout-jump a:hover,
.tfhideout-jump a:focus-visible,
.tfhideout-breadcrumb a:hover {
  border-color: var(--tfh-accent-border);
  color: var(--tfh-accent);
  outline: none;
  transform: translateY(-1px);
}

.tfhideout-card__actions a:first-child:hover,
.tfhideout-card__actions a:first-child:focus-visible {
  border-color: var(--tfh-accent);
  background: #1d4ed8;
  color: #fff;
  outline: none;
}

.tfhideout-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--tfh-soft);
  font-size: 13px;
}

.tfhideout-breadcrumb strong {
  color: var(--tfh-text);
}

.tfhideout-jump {
  margin: 20px 0 24px;
}

.tfhideout-levels,
.tfhideout-detail-section {
  display: grid;
  gap: 16px;
}

.tfhideout-level {
  scroll-margin-top: 88px;
  padding: 20px;
}

.tfhideout-level header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tfh-border);
}

.tfhideout-level header > div {
  min-width: 0;
}

.tfhideout-level header span {
  color: var(--tfh-accent);
  font-size: 12px;
  font-weight: 800;
}

.tfhideout-level header h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.tfhideout-level header > strong {
  padding: 10px 14px;
  border: 1px solid var(--tfh-border);
  border-radius: 10px;
  background: var(--tfh-panel);
  color: var(--tfh-text);
  font-size: 13px;
  text-align: right;
}

.tfhideout-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--tfh-accent-border);
  border-radius: 10px;
  background: var(--tfh-accent-soft);
  color: var(--tfh-soft);
  font-size: 13px;
  line-height: 1.7;
}

.tfhideout-level h3,
.tfhideout-detail-section h3 {
  margin: 14px 0 10px;
  color: var(--tfh-text);
  font-size: 16px;
  font-weight: 800;
}

.tfhideout-items,
.tfhideout-crafts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.tfhideout-item,
.tfhideout-craft {
  padding: 12px;
  border: 1px solid var(--tfh-border);
  border-radius: 12px;
  background: var(--tfh-panel);
  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.tfhideout-item:hover,
.tfhideout-craft:hover {
  transform: translateY(-1px);
  border-color: var(--tfh-accent-border);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.tfhideout-level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tfhideout-level-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tfh-border);
  border-radius: 12px;
  background: var(--tfh-panel);
}

.tfhideout-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--tfh-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tfhideout-list a {
  color: var(--tfh-link);
  font-weight: 700;
  text-decoration: none;
}

.tfhideout-list a:hover {
  color: var(--tfh-accent);
}

.tfhideout-detail-section {
  margin-top: 16px;
  padding: 20px;
}

.tfhideout-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--tfh-border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.tfhideout-levels--carousel {
  display: block;
}

.tfhideout-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.tfhideout-levels--carousel .tfhideout-level {
  display: none;
}

.tfhideout-levels--carousel .tfhideout-level.is-active {
  display: block;
}

.tfhideout-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--tfh-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--tfh-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color .16s ease,
    color .16s ease,
    background-color .16s ease,
    transform .16s ease;
}

.tfhideout-carousel__btn:hover,
.tfhideout-carousel__btn:focus-visible {
  border-color: var(--tfh-accent-border);
  color: var(--tfh-accent);
  outline: none;
  transform: translateY(-1px);
}

.tfhideout-carousel__btn:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.tfhideout-carousel__counter {
  color: var(--tfh-soft);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .tfhideout-main {
    width: min(100% - 20px, 1200px);
    padding-top: 14px;
  }

  .tfhideout-hero,
  .tfhideout-priority,
  .tfhideout-toolbar,
  .tfhideout-level-grid {
    grid-template-columns: 1fr;
  }

  .tfhideout-hero {
    align-items: start;
  }

  .tfhideout-detail .tfhideout-hero {
    grid-template-columns: 1fr;
  }

  .tfhideout-detail .tfhideout-hero .tfhideout-hero-image,
  .tfhideout-detail .tfhideout-hero dl {
    grid-column: auto;
    grid-row: auto;
  }

  .tfhideout-hero h1 {
    font-size: 28px;
  }

  .tfhideout-toolbar p {
    max-width: none;
    text-align: left;
  }

  .tfhideout-toolbar {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .tfhideout-hero,
  .tfhideout-card,
  .tfhideout-level,
  .tfhideout-detail-section {
    padding: 14px;
  }

  .tfhideout-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tfhideout-hero {
    gap: 12px;
  }

  .tfhideout-hero h1 {
    font-size: 24px;
  }

  .tfhideout-hero p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
  }

  .tfhideout-hero dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .tfhideout-detail .tfhideout-hero dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfhideout-detail .tfhideout-hero .tfhideout-hero-image {
    width: 88px;
    height: 88px;
    padding: 12px;
  }

  .tfhideout-hero dl div,
  .tfhideout-card dl div {
    padding: 8px;
  }

  .tfhideout-hero dd {
    font-size: 18px;
  }

  .tfhideout-priority {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }

  .tfhideout-priority article {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .tfhideout-toolbar {
    padding: 14px;
  }

  /* 2026-09-26 移动端优化：设施列表桌面 3 列、手机 1 列会把页面拉长 1.4 倍，
     手机保持 2 列（单个设施块 7095px → 5865px）。 */
  .tfhideout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfhideout-items,
  .tfhideout-crafts {
    grid-template-columns: 1fr;
  }

  .tfhideout-card p {
    min-height: 0;
  }

  .tfhideout-card__actions a,
  .tfhideout-jump a {
    flex: 1 1 auto;
  }

  .tfhideout-level header {
    display: grid;
  }
}
