@charset "UTF-8";
/* 皮哒莉小游戏屋 — 清爽日系日常漫画风
   白纸底、利落黑墨线框、晴空淡蓝 + 珊瑚红点缀、通透留白。 */

:root {
  color-scheme: light;
  --bg: #fbfbf8;
  --paper: #ffffff;
  --ink: #1b1b20;
  --ink-2: #52525b;
  --muted: #71717a;
  --sky: #e8f5fc;
  --sky-strong: #cde8f6;
  --warm: #fff4df;
  --mint: #edf7f2;
  --coral: #e85a4f;
  --coral-deep: #c9443a;
  --wechat: #07c160;
  --wechat-deep: #059b4c;
  --border: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-soft: 6px 6px 0 #d6e7f2;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(27, 27, 32, .06) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
img, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
::selection { background: #ffe2dc; color: var(--ink); }

.skip {
  position: fixed; top: -80px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- 漫画格与通用按钮 ---------- */
.manga-panel {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: var(--border);
  background: #fafafa;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.panel-no { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  border: var(--border);
  box-shadow: 4px 4px 0 var(--coral);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--coral); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--coral); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-ghost:hover { background: var(--sky); box-shadow: 2px 2px 0 var(--ink); }
.btn-wechat {
  background: var(--wechat);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-wechat:hover { background: var(--wechat-deep); box-shadow: 2px 2px 0 var(--ink); }
.cta-short { display: none; }

.tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.tags li {
  padding: 3px 10px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  height: 76px;
  margin: 0 auto;
  padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-avatar {
  width: 46px;
  height: 46px;
  border: var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: var(--sky);
  flex: none;
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
}
.brand-text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--coral);
  margin-top: 2px;
}
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 700; }
.site-nav a { position: relative; color: var(--ink-2); padding: 6px 2px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--coral);
}

/* ---------- 首屏漫画双格 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
  gap: 48px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 52px 28px 64px;
}
.ep-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sky);
  border: var(--border);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink);
}
h1 {
  margin: 20px 0 22px;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
}
h1 .hl {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.hero-bubble {
  position: relative;
  padding: 18px 22px;
  background: var(--paper);
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  max-width: 540px;
}
.hero-bubble::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 28px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-top: var(--border);
  border-right: var(--border);
  transform: rotate(45deg);
}
.bubble-speaker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: .04em;
}
.hero-bubble p { font-size: 16px; color: var(--ink); line-height: 1.65; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.hero-meta li::before { content: "• "; color: var(--coral); font-weight: 900; }

/* ---------- 公共区块 ---------- */
.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 28px;
  border-top: 2px dashed #e4e4e7;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--coral);
  margin-bottom: 6px;
}
h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.25;
}
.section-note { font-size: 14px; color: var(--muted); }

/* ---------- 微信小游戏合集 ---------- */
.minigame-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 28px;
  align-items: stretch;
}
.wechat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #e9fbf0;
  border: 1.5px solid var(--wechat);
  color: var(--wechat-deep);
  font-size: 12px;
  font-weight: 800;
}
.wechat-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--wechat); }
.soon-pill {
  padding: 3px 10px;
  background: var(--warm);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: center;
  padding: 26px 28px 28px;
}
.feature-info { display: flex; flex-direction: column; gap: 14px; }
.feature-info h3 { font-size: 28px; font-weight: 900; line-height: 1.2; }
.feature-desc { color: var(--ink-2); font-size: 15px; }
.wechat-banner-box {
  padding: 10px 14px;
  background: #f6f7f9;
  border: 1.5px solid #d4d4d8;
  border-radius: 10px;
  max-width: 340px;
}
.wechat-banner-box img { width: 100%; height: auto; }
.feature-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.scan-hint { font-size: 13px; color: var(--muted); }
.scan-hint strong { color: var(--ink); }

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--sky);
  border: var(--border);
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.qr-card:hover { transform: translateY(-3px); }
.qr-box {
  width: 192px;
  height: 192px;
  padding: 8px;
  background: #fff;
  border: var(--border);
  border-radius: 12px;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-label { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.qr-label strong { color: var(--wechat-deep); }
.qr-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }

.game-upcoming {
  display: flex;
  flex-direction: column;
  border-style: dashed;
  box-shadow: var(--shadow-soft);
}
.upcoming-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 22px;
  gap: 12px;
}
.upcoming-bubble {
  padding: 8px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.upcoming-chibi { height: 150px; width: auto; object-fit: contain; }
.upcoming-body h3 { font-size: 19px; font-weight: 800; }
.upcoming-body p { font-size: 14px; color: var(--muted); }

/* ---------- 日常漫画 & 表情包画廊 ---------- */
.gallery-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.daily-grid,
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.daily-grid[hidden],
.sticker-grid[hidden] { display: none; }

.daily-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.daily-card:hover { transform: translateY(-4px); box-shadow: 7px 7px 0 var(--ink); }
.daily-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-bottom: var(--border);
}
.daily-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
}
.daily-card figcaption span { font-weight: 700; color: var(--coral); }
.daily-card figcaption strong { font-weight: 800; color: var(--ink); }

.sticker-card { display: flex; flex-direction: column; }
.sticker-stage {
  display: grid;
  place-items: center;
  padding: 20px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(rgba(110, 193, 228, .22) 1.5px, transparent 1.5px),
    #fafdff;
  background-size: 14px 14px;
  border-bottom: var(--border);
}
.sticker-stage img { width: 84%; height: 84%; object-fit: contain; }
.sticker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}
.sticker-foot a {
  padding: 3px 10px;
  background: var(--sky);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}
.sticker-foot a:hover { background: var(--coral); color: #fff; }

.lightbox-card {
  position: relative;
  z-index: 1;
  width: min(560px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.lightbox-body {
  padding: 14px;
  background: var(--bg);
  overflow: auto;
  display: grid;
  place-items: center;
}
.lightbox-body img { max-height: 76vh; width: auto; max-width: 100%; border: var(--border); }

/* ---------- 网页游戏（保留战车工坊） ---------- */
.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.world-card { display: flex; flex-direction: column; }
.world-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: var(--border);
  background: var(--sky);
  aspect-ratio: 16 / 9;
}
.world-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}
.world-card:hover .world-cover img { transform: scale(1.025); }
.draft-cover {
  display: grid;
  place-items: center;
  background:
    radial-gradient(rgba(110, 193, 228, .25) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #eff8fd 0%, #ffffff 100%);
  background-size: 16px 16px, 100% 100%;
}
.draft-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, .92);
  border: 2px dashed var(--ink);
  text-align: center;
}
.draft-ep {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--coral);
}
.draft-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}
.draft-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
}
.cover-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.cover-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--wechat); }
.cover-pill.is-muted { color: var(--muted); }
.world-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 24px;
}
.world-body h3 { font-size: 24px; font-weight: 900; }
.world-body p { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.world-body .btn { margin-top: auto; }
.world-card.is-future { border-style: dashed; box-shadow: var(--shadow-soft); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 32px;
  border-top: var(--border);
  background: var(--paper);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand { font-weight: 900; color: var(--ink); letter-spacing: .04em; }

/* ---------- 漫画对话浮窗 ---------- */
#speech {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(400px, calc(100vw - 28px));
  padding: 14px 16px;
  background: var(--paper);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
#speech[hidden] { display: none; }
.speech-face {
  width: 46px;
  height: 46px;
  border: var(--border);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--sky);
}
.speech-face img { width: 100%; height: 100%; object-fit: cover; }
.speech-body { flex: 1; }
.speech-speaker { display: block; font-size: 12px; font-weight: 800; color: var(--coral); margin-bottom: 2px; }
#speech p { font-size: 14px; color: var(--ink); line-height: 1.5; }
#speech button {
  background: none; border: 0; font-size: 20px; line-height: 1;
  color: var(--muted); padding: 0 2px;
}
#speech button:hover { color: var(--ink); }

/* ---------- 太阳码放大弹窗 ---------- */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.qr-modal[hidden] { display: none; }
.qr-modal-backdrop { position: absolute; inset: 0; background: rgba(27, 27, 32, .55); }
.qr-modal-card { position: relative; z-index: 1; width: min(390px, 100%); }
.modal-close {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 0; font-size: 16px; font-weight: 700;
}
.qr-modal-body {
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 24px 28px; text-align: center;
}
.qr-modal-img-wrap {
  padding: 12px;
  background: #fff;
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.qr-modal-img-wrap img { width: 256px; height: 256px; object-fit: contain; }
.qr-modal-tip { margin-top: 18px; font-size: 16px; font-weight: 700; }
.qr-modal-tip strong { color: var(--wechat-deep); }
.qr-modal-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- 响应式断点 ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .hero-bubble::after { display: none; }
  .hero-manga-wrap { max-width: 460px; width: 100%; margin-inline: auto; }
  .minigame-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .feature-body { grid-template-columns: 1fr; }
  .qr-card { max-width: 260px; width: 100%; margin-inline: auto; }
  .world-grid { grid-template-columns: 1fr; }
  .daily-grid, .sticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .daily-grid, .sticker-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 18px; height: 68px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero { padding: 28px 18px 44px; }
  .section { padding: 44px 18px; }
  .feature-body { padding: 20px 18px 22px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}
