/* ═══════════════════════════════════════════════════════════
   v2 layout — 几何完全对齐线上 jidi.moyu.games（moyu.css）
   仅视觉层（配色 / 字体 / 圆角 / 阴影）保持岛屿潮汐。
   此文件在 moyu-refresh.css 之后加载，负责把本地实验层的
   几何偏移全部压回线上形态。
   ═══════════════════════════════════════════════════════════ */

.site-view {
  position: relative;
  min-height: 100vh;
}

/* ── 顶部导航：左品牌 / 中间菜单 / 右登录（线上几何） ── */

.global-nav {
  position: fixed;
  inset: 1.75rem 3.5rem auto;
  z-index: 25;
  display: block;
  min-height: 2.75rem;
}

.global-nav .site-brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.55rem;
}

.global-nav .nav-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  width: min(760px, calc(100% - 14rem));
  max-width: 760px;
}

.global-nav .top-login-button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/* ── 通用分栏（52 / 48，线上几何） ── */

.hero-split {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

.left-panel {
  position: relative;
  width: 52%;
  min-height: 100vh;
  padding: 1.5rem;
}

.right-panel {
  position: relative;
  z-index: 12;
  width: 48%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

/* ── 首页：hero 卡片绝对定位，右栏悬浮右下（线上几何） ── */

.home-split {
  position: relative;
  /* 取消 1440px 居中上限：让首页 hero 靠左、右下快捷卡靠右，
     与视口级定位的顶部导航左右对齐（宽屏下不再两侧留大空白）。 */
  width: 100%;
  margin-inline: auto;
  min-height: 100vh;
}

.home-left-panel {
  position: static;
  width: auto;
  min-height: 0;
  padding: 0;
}

.home-left-content {
  min-height: 0;
  display: contents;
  padding: 0;
}

.home-hero-center {
  position: absolute;
  top: clamp(8.5rem, 12vh, 12rem);
  left: clamp(3.5rem, 8vw, 10rem);
  z-index: 13;
  width: min(29.5rem, calc(100vw - 7rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 1.55rem 1.35rem 1.2rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.01);
  text-align: center;
}

/* 首页保留内容区域，只移除标题区的外层玻璃框 */
.home-hero-center.home-hero-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-hero-center.home-hero-content .glass-shine {
  display: none;
}

/* 撤掉本地实验层与旧版 v2 加的标语，恢复线上原生形态 */
.home-hero-center::after {
  content: none;
}

.home-hero-center h1 {
  max-width: none;
  font-size: clamp(3.1rem, 4.2vw, 4.65rem);
  line-height: 0.94;
}

.home-right-panel {
  position: absolute;
  /* 与 hero 左侧内边距对称：右下快捷卡贴到视口右侧（宽屏下不再偏内） */
  right: clamp(3.5rem, 8vw, 10rem);
  bottom: 1.9rem;
  top: auto;
  z-index: 14;
  width: clamp(22rem, 30vw, 30rem);
  min-height: 0;
  margin: 0;
  padding: 0;
  transform: none;
}

/* ── page 视图（线上几何；同特异性压制 refresh 层的双栏网格实验） ── */

.page-view {
  padding: 0;
}

.page-view .page-split {
  display: block;
  width: auto;
  margin: 0;
  grid-template-columns: none;
  gap: 0;
  align-items: stretch;
  padding-top: 6.25rem;
  padding-bottom: 5rem;
}

.page-view .page-panel {
  padding: 0;
}

.page-view .page-content {
  padding: 4.8rem 2rem 1.2rem;
  padding-top: 1.5rem;
}

.page-split {
  display: block;
  padding: 1.5rem;
}

.page-panel {
  width: min(1180px, 100%);
  min-height: calc(100vh - 3rem);
  margin: 0 auto;
  padding: 0;
}

.page-content {
  min-height: calc(100vh - 3rem);
  padding: 4.8rem 2rem 1.2rem;
}

.work-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

/* ── 底部：功能条 + 页脚（线上几何） ── */

.feature-shell {
  width: min(640px, 100%);
  margin-top: auto;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 2.5rem;
  pointer-events: auto;
}

.bottom-feature {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1.75rem;
}

.global-footer {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 2rem;
  z-index: 25;
  transform: translateX(-50%);
  justify-content: center;
}

/* ═══ 响应式：对齐线上断点 1023px / 560px ═══ */

/* 1180px 守护块：refresh 层在此断点把首页改成网格布局、
   面板改相对定位 —— 线上没有这些规则，这里压回桌面形态 */
@media (max-width: 1180px) {
  .home-split {
    display: flex;
    align-items: stretch;
    padding-top: 0;
  }

  .home-hero-center {
    position: absolute;
    top: clamp(8.5rem, 12vh, 12rem);
    left: clamp(3.5rem, 8vw, 10rem);
    width: min(29.5rem, calc(100vw - 7rem));
    margin: 0;
    transform: none;
  }

  .home-right-panel {
    position: absolute;
    right: clamp(3.5rem, 8vw, 10rem);
    bottom: 1.9rem;
    top: auto;
    width: min(31rem, 31vw);
    margin: 0;
    margin-top: 0;
    padding-bottom: 0;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .global-nav {
    position: absolute;
    inset: 1rem 1rem auto;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .global-nav .site-brand {
    position: static;
    margin-right: auto;
    font-size: 1.25rem;
  }

  .global-nav .nav-stack {
    position: static;
    order: 3;
    width: 100%;
    max-width: none;
    transform: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .global-nav .top-login-button {
    position: static;
  }

  .home-split {
    padding: 0 1rem;
  }

  .home-hero-center {
    position: relative;
    top: auto;
    left: auto;
    width: min(31rem, 100%);
    min-height: 0;
    margin: 9.5rem auto 1.5rem;
    align-items: center;
  }

  .home-right-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(31rem, 100%);
    margin: 0 auto 6rem;
  }

  .hero-split,
  .page-split {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    padding: 1rem;
  }

  .right-panel {
    position: static;
    width: min(100% - 2rem, 680px);
    margin: 0 auto 5rem;
    min-height: auto;
    padding: 0;
  }

  .page-split {
    padding: 1rem;
    padding-top: 8.5rem;
  }

  .page-content {
    padding: 1rem 1rem 2rem;
  }

  .work-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-center h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .global-footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    justify-content: center;
    padding-bottom: 1.2rem;
  }
}

@media (max-width: 560px) {
  .home-hero-center {
    padding: 1.1rem 0.85rem;
    border-radius: 1rem;
  }

  .home-hero-center .work-time-card {
    padding: 0.7rem;
  }

  .work-form {
    grid-template-columns: 1fr;
  }
}

/* 四个栏目沿用摸保的文字系统：深色标题、海蓝灰说明、统一中文字体。 */
.page-view.reader-view,
.page-view.games-view,
.page-view.tools-view,
.page-view.about-view,
.page-view.reader-view button,
.page-view.games-view button,
.page-view.tools-view button,
.page-view.about-view button,
.page-view.reader-view input,
.page-view.games-view input,
.page-view.tools-view input,
.page-view.about-view input,
.page-view.reader-view textarea,
.page-view.games-view textarea,
.page-view.tools-view textarea,
.page-view.about-view textarea,
.page-view.reader-view select,
.page-view.games-view select,
.page-view.tools-view select,
.page-view.about-view select {
  font-family: var(--font-sans);
}

.page-view.reader-view .page-title-row h1,
.page-view.games-view .page-title-row h1,
.page-view.tools-view .tools-hero-copy h1,
.page-view.about-view .page-title-row h1 {
  color: var(--ui-ink);
  font-weight: 780;
}

.page-view.reader-view .page-title-row p,
.page-view.games-view .page-title-row p,
.page-view.tools-view .tools-hero-copy p,
.page-view.about-view .page-title-row p {
  color: var(--ui-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* 阅读、关于：卡片文字与摸保场景标题/副标题保持同一层级。 */
.page-view.reader-view .reader-card-copy strong,
.page-view.about-view .reader-card-copy strong,
.page-view.reader-view .result-title,
.page-view.about-view .result-title,
.page-view.reader-view .about-friend-copy strong,
.page-view.about-view .about-friend-copy strong {
  color: var(--ui-ink);
  font-weight: 600;
}

.page-view.reader-view .reader-card-copy p,
.page-view.about-view .reader-card-copy p,
.page-view.reader-view .result-desc,
.page-view.about-view .result-desc,
.page-view.reader-view .about-friend-copy small,
.page-view.about-view .about-friend-copy small {
  color: var(--ui-muted);
  font-weight: 400;
}

.page-view.reader-view .result-action,
.page-view.about-view .result-action,
.page-view.about-view .about-friend-arrow {
  color: #668087;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20.59px;
}

.page-view.reader-view .result-action .button-content,
.page-view.about-view .result-action .button-content,
.page-view.tools-view .tool-actions .glass-button .button-content {
  color: #668087;
  font-family: var(--font-sans);
}

.page-view.about-view .result-action .button-content {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20.59px;
}

/* 游戏：分类、卡片标题、描述和操作文字对齐摸保的按钮/卡片层级。 */
.page-view.games-view .game-tabs button,
.page-view.games-view .fc-game-tabs button {
  color: var(--ui-muted);
  font-weight: 400;
}

.page-view.games-view .game-tabs button:hover,
.page-view.games-view .game-tabs button.is-active,
.page-view.games-view .fc-game-tabs button:hover,
.page-view.games-view .fc-game-tabs button.is-active {
  color: var(--ui-ink);
  background: var(--ui-sea-soft);
}

.page-view.games-view .game-card-body,
.page-view.games-view .game-card-body h3,
.page-view.games-view .game-card-body p,
.page-view.games-view .game-card-body small {
  font-family: var(--font-sans);
}

.page-view.games-view .game-card-body h3 {
  color: var(--ui-ink);
  font-weight: 600;
}

.page-view.games-view .game-card-body p {
  color: var(--ui-muted);
  font-weight: 400;
}

.page-view.games-view .game-card-body small {
  color: var(--ui-faint);
  font-weight: 400;
}

.page-view.games-view .game-play-button {
  border: 1px solid var(--ui-line);
  color: var(--ui-ink);
  background: var(--ui-sea-soft);
  font-family: var(--font-sans);
  font-weight: 600;
}

.page-view.games-view .game-play-button:hover {
  color: var(--ui-ink);
  background: rgba(49, 124, 120, 0.2);
}

/* 封面文案也使用摸保的字体；封面本身保留彩色背景。 */
.page-view.games-view .game-cover span,
.page-view.games-view .game-cover b {
  color: var(--ui-ink);
  font-family: var(--font-sans);
  text-shadow: none;
}

.page-view.games-view .game-cover b {
  background: rgba(249, 252, 249, 0.72);
  font-weight: 600;
}

/* 工具：覆盖旧版深色主题留下的 hsl 文字色。 */
.page-view.tools-view .page-kicker,
.page-view.tools-view .tool-kicker {
  color: var(--ui-sea);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-view.tools-view .tools-hero-copy h1,
.page-view.tools-view .tool-main-head h2,
.page-view.tools-view .tool-showcase-copy strong,
.page-view.tools-view .tool-side-card strong,
.page-view.tools-view .tool-result-card strong,
.page-view.tools-view .speed-result strong {
  color: var(--ui-ink);
  font-weight: 600;
}

.page-view.tools-view .tools-hero-copy h1 {
  font-weight: 780;
}

.page-view.tools-view .tools-hero-copy p,
.page-view.tools-view .tool-subtitle,
.page-view.tools-view .tool-showcase-copy p,
.page-view.tools-view .tool-side-card p,
.page-view.tools-view .tool-empty,
.page-view.tools-view .tool-result-badge,
.page-view.tools-view .speed-result span,
.page-view.tools-view .tool-qr-result,
.page-view.tools-view .lan-file-list span {
  color: var(--ui-muted);
  font-weight: 400;
}

.page-view.tools-view .tools-tabs button,
.page-view.tools-view .tool-platforms button {
  color: var(--ui-muted);
  font-family: var(--font-sans);
  font-weight: 400;
}

.page-view.tools-view .tools-tabs button:hover,
.page-view.tools-view .tools-tabs button.is-active,
.page-view.tools-view .tool-platforms button:hover,
.page-view.tools-view .tool-platforms button.is-active {
  color: var(--ui-ink);
  background: var(--ui-sea-soft);
}

.page-view.tools-view .tool-input-row span,
.page-view.tools-view .tool-input-row input,
.page-view.tools-view .tool-input-row textarea,
.page-view.tools-view .tool-input-row select,
.page-view.tools-view .tool-file-input {
  color: var(--ui-ink);
  font-family: var(--font-sans);
}

.page-view.tools-view .tool-input-row input::placeholder,
.page-view.tools-view .tool-input-row textarea::placeholder {
  color: var(--ui-faint);
}

.page-view.tools-view .tool-result-links a,
.page-view.tools-view .tool-actions .glass-button {
  color: var(--ui-ink);
  font-family: var(--font-sans);
}

/* 摸保说明区与下方场景卡片使用同一套标题和副标题文字样式。 */
.moba-instructions h2 {
  color: var(--ui-ink);
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.65;
}

.moba-instructions li span {
  color: var(--ui-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

/* 阅读与工具卡片统一采用摸保“数据库查询”卡片的标题、说明文字规格。 */
.page-view.reader-view .reader-card-copy strong,
.page-view.about-view .reader-card-copy strong,
.page-view.about-view .result-title,
.page-view.about-view .about-friend-copy strong,
.page-view.tools-view .tool-showcase-copy strong,
.page-view.tools-view .tool-side-card strong,
.page-view.tools-view .tool-result-card strong {
  color: #14343c;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 29.57px;
}

.page-view.reader-view .reader-card-copy p,
.page-view.about-view .reader-card-copy p,
.page-view.about-view .result-desc,
.page-view.about-view .about-friend-copy small,
.page-view.tools-view .tool-showcase-copy p,
.page-view.tools-view .tool-side-card p,
.page-view.tools-view .tool-result-card p,
.page-view.tools-view .speed-result span {
  color: #668087;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20.59px;
}
