/* layout.css —— 每一屏的布局 + 像素装饰 */

/* ===== 首页 · 大门 ===== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center top / cover;
}
.hero-title-wrap { position: absolute; top: 60px; width: 100%; text-align: center; }
.hero-title {
  font-family: var(--font-pixel);
  font-size: 72px;
  color: var(--bg-dark);
  margin: 0;
  text-shadow: 4px 4px 0 var(--white), -4px 4px 0 var(--white), 4px -4px 0 var(--white), -4px -4px 0 var(--white),
               0 4px 0 var(--white), 0 -4px 0 var(--white), 4px 0 0 var(--white), -4px 0 0 var(--white);
}
.hero-note {
  position: absolute; top: 210px; left: 50%; transform: translateX(-50%); /* 8/6 傍晚黄字条从标题组搬出来单住：以前的位置是标题组 60 + 条内 150 叠出来的，210 原样保住 */
  background: var(--yellow); color: #000; font-family: var(--font-round); font-size: 20px;
  padding: 5px 15px; width: 420px; max-width: 80%; text-align: center; line-height: 1.2;
}
.start-btn {
  position: absolute; top: 280px; left: 0; right: 0; margin: 0 auto; width: fit-content;
  background: var(--bg-dark); color: var(--white); font-family: var(--font-round); font-size: 28px;
  padding: 12px 36px; border: 4px solid var(--white); cursor: pointer;
  display: flex; align-items: center; gap: 12px; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}
/* 进入按钮里的小机器人（替换原来的箭头·8/6） */
.btn-pet { position: relative; width: 20px; height: 17px; background: var(--white); border-radius: 40% 40% 30% 30%; display: inline-block; flex-shrink: 0; }
.btn-pet::before { content: ''; position: absolute; top: 4px; left: 3px; width: 3px; height: 3px; background: #000; border-radius: 50%; box-shadow: 8px 0 0 #000; }
.btn-pet::after { content: ''; position: absolute; top: -6px; left: 2px; width: 4px; height: 6px; background: var(--white); box-shadow: 9px 0 0 var(--white); border-radius: 2px 2px 0 0; }

.pixel-decor { position: absolute; bottom: -20px; left: 0; width: 100%; height: 100px; z-index: 5; }
.pd-black { position: absolute; bottom: 20px; left: 0; width: 100%; height: 50px; background: var(--bg-dark); clip-path: polygon(0 100%, 100% 100%, 100% 60%, 95% 60%, 95% 40%, 90% 40%, 90% 20%, 85% 20%, 85% 60%, 80% 60%, 80% 80%, 70% 80%, 70% 40%, 65% 40%, 65% 0, 60% 0, 60% 40%, 55% 40%, 55% 60%, 50% 60%, 50% 80%, 40% 80%, 40% 60%, 35% 60%, 35% 20%, 30% 20%, 30% 60%, 25% 60%, 25% 80%, 15% 80%, 15% 40%, 10% 40%, 10% 60%, 5% 60%, 5% 20%, 0 20%); }
.pd-pink { position: absolute; bottom: 20px; left: 15%; width: 25%; height: 40px; background: var(--pink); clip-path: polygon(0 100%, 100% 100%, 100% 60%, 90% 60%, 90% 20%, 80% 20%, 80% 0, 70% 0, 70% 40%, 60% 40%, 60% 80%, 40% 80%, 40% 60%, 30% 60%, 30% 20%, 20% 20%, 20% 60%, 10% 60%, 10% 80%, 0 80%); }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--pink); display: flex; justify-content: center; gap: 60px;
  padding: 15px 50px; font-family: var(--font-round); color: var(--white); font-size: 24px;
  border-bottom: 4px solid var(--bg-dark);
}
.nav span { cursor: pointer; transition: transform 0.2s, color 0.2s; }
.nav span:hover { transform: scale(1.1); color: var(--yellow); }

/* ===== 关于梨 ===== */
.about { background: var(--bg-dark); position: relative; padding: 60px 80px 250px; overflow: hidden; }
.about-title { font-family: var(--font-pixel); font-size: 40px; margin: 0 0 50px; line-height: 1.3; }
.content-row { display: flex; gap: 60px; position: relative; z-index: 2; }
.text-left { font-family: var(--font-round); font-size: 28px; width: 45%; line-height: 1.4; }
.text-right { font-family: var(--font-round); font-size: 20px; width: 45%; line-height: 1.4; color: #ccc; margin-top: -80px; }
.highlight { background: var(--pink); padding: 0 8px; color: var(--white); }
.stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect x="30" y="50" width="4" height="4" fill="white"/><rect x="150" y="20" width="4" height="4" fill="white"/><rect x="80" y="120" width="4" height="4" fill="white"/></svg>') repeat; }
.earth-wrapper { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 250px; overflow: hidden; z-index: 1; }
.earth { width: 600px; height: 600px; border-radius: 50%; position: absolute; top: 0; left: 0; } /* 8/6 撕掉手搓假地球时代垫底的实心蓝贴纸，真球自己画自己，底下透明融进黑夜 */

/* ===== 作品 · 系统窗口 ===== */
.features { background: var(--green-soft); padding: 100px 50px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; border-top: 10px solid var(--bg-dark); border-bottom: 10px solid var(--bg-dark); }
.status-card { border: 4px solid var(--blue); border-radius: 12px; background: linear-gradient(to bottom, #b3d4fc, #e6f0ff); padding: 20px; height: fit-content; display: flex; flex-direction: column; align-items: center; }
.status-name { font-family: var(--font-pixel); font-size: 16px; color: var(--white); text-shadow: 2px 2px 0 var(--blue); margin-bottom: 15px; }
.status-avatar { width: 130px; height: 130px; background: var(--white); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-face { width: 100%; height: 100%; background: #bdf2ff; display: flex; align-items: center; justify-content: center; position: relative; }
.pet-head { width: 90px; height: 75px; background: #fff9b0; border-radius: 50%; position: relative; }
.pet-eye { width: 6px; height: 12px; background: #0055a4; border-radius: 50%; position: absolute; top: 30px; }
.pet-eye.left { left: 25px; }
.pet-eye.right { right: 25px; }
.pet-nose { width: 10px; height: 6px; background: #ff66b2; border-radius: 50%; position: absolute; top: 40px; left: 40px; }
.status-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-round); font-size: 22px; color: var(--ink); }
.status-list i { color: var(--blue-deep); margin-right: 8px; }
.window { box-shadow: 20px 20px 0 var(--blue); }
.titlebar { background: linear-gradient(to bottom, #99cfff, #3d8bff); color: var(--white); padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-body); font-size: 18px; }
.btn-close { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(to bottom, #ff8a8a, #cc0000); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.window-main { background: var(--white); padding: 30px; min-height: 300px; display: flex; flex-direction: column; }
.window-hello { font-family: var(--font-round); font-size: 36px; color: var(--ink); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.window-hello i { color: var(--blue-deep); }
.window-text { font-family: var(--font-round); color: var(--blue); font-size: 22px; line-height: 1.2; margin-bottom: 24px; }
.window-buttons { display: flex; gap: 24px; }
.pill-btn { background: linear-gradient(to bottom, #e0f8d0, #a0f060); border: 2px solid #75d438; border-radius: 20px; padding: 8px 28px; font-family: var(--font-round); font-size: 24px; color: var(--blue-deep); cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.pill-btn.alt { background: linear-gradient(to bottom, #e0e8ff, #a8c0ff); border-color: var(--blue); }

/* ===== 更多 · 结尾 ===== */
.closing { background: var(--yellow); position: relative; padding: 60px 80px; min-height: 500px; overflow: hidden; }
.closing-title { position: absolute; top: 60px; left: 80px; font-family: var(--font-pixel); font-size: 40px; color: var(--bg-dark); margin: 0; line-height: 1.3; }
.bubble-wrap { position: absolute; top: 80px; right: 80px; display: flex; flex-direction: column; align-items: flex-start; transform: translate(-66px, 95px); }
.bubble { background: var(--white); border: 6px solid #000; border-radius: 15px; padding: 20px 30px; font-family: var(--font-round); font-size: 24px; color: #000; text-align: center; max-width: 420px; margin-bottom: 40px; position: relative; }
.bubble::after { content: ''; position: absolute; bottom: -30px; left: 60px; border-width: 30px 30px 0 0; border-style: solid; border-color: #000 transparent transparent transparent; }
.bubble::before { content: ''; position: absolute; bottom: -17px; left: 66px; border-width: 20px 20px 0 0; border-style: solid; border-color: var(--white) transparent transparent transparent; z-index: 1; }
.mini-pet { width: 60px; height: 50px; background: var(--white); border: 6px solid #000; border-radius: 40% 40% 30% 30%; position: relative; margin-left: -66px; margin-top: 79px; }
.mini-pet::before { content: ''; position: absolute; top: 12px; left: 10px; width: 8px; height: 8px; background: #000; border-radius: 50%; box-shadow: 20px 0 0 #000; }
.mini-pet::after { content: ''; position: absolute; top: -18px; left: 6px; width: 12px; height: 18px; background: #000; box-shadow: 24px 0 0 #000; border-radius: 6px 6px 0 0; }

/* 联系我们按钮（8/6 傍晚梨亲定）：复用大门进入按钮的样式动效，站进结尾屏右下角。
   缩小版（8/6 傍晚梨亲定·小小一颗不抢戏）：贴紧角落，字号、内距、边框都收小，小机器人缩一半。
   光晕呼吸的影影子是动效自带的，跟大门那颗同款，想再调就拧下面几行 */
.contact-btn { top: auto; bottom: 20px; left: auto; right: 20px; margin: 0; font-size: 13px; padding: 4px 12px; border-width: 2px; }
.contact-btn .btn-pet { transform: scale(0.55); }

/* ===== 页脚 · 备案 ===== */
.site-footer { background: var(--bg-dark); color: #999; text-align: center; padding: 20px; font-family: var(--font-round); font-size: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.site-footer a { color: #999; }
.site-footer a:hover { color: var(--yellow); }

/* ===== 手机摆法（768格以下启用·第二轮·8/6） ===== */
@media (max-width: 768px) {
  /* 首页大门：撑满手机一整屏（8/6 傍晚梨亲定）。以前只有 400 格高，人刚进门，第二屏的动效就在底下偷跑；
     现在大门正好盖住一整个手机屏幕，第二屏缩在门外，客人滑一下才轮到它亮相。
     svh 是手机专用的屏高尺，认得浏览器顶栏底栏，vh 给老手机兑底 */
  .hero { height: 100vh; height: 100svh; }
  .hero-title-wrap { top: 300px; } /* 8/6 傍晚梨亲定·大标题再往下 200 格（100 改 300），想调拧 300 */
  .hero-title { font-size: 44px; /* 8/6 傍晚梨亲定·大标题放大（32 改 44），想调拧 44 */ text-shadow: 2px 2px 0 var(--white), -2px 2px 0 var(--white), 2px -2px 0 var(--white), -2px -2px 0 var(--white), 0 2px 0 var(--white), 0 -2px 0 var(--white), 2px 0 0 var(--white), -2px 0 0 var(--white); }
  /* 黄字条和进入按钮往下挪（8/6 傍晚梨亲定）：她俩是一组，一组一起动，用同一把屏高尺。
     黄字条站 56%；按钮站在黄条往下 41 格的地方（8/6 傍晚梨亲定·按钮两次往下·共 20 格）。
     calc 就是算式：56% 加 41 格，黄条本身大约 30 格高。想再调就拧 41 这个数，拧大按钮往下，拧小按钮往上 */
  .hero-note { top: 56%; font-size: 16px; width: 300px; }
  .start-btn { top: calc(56% + 41px); font-size: 22px; padding: 10px 24px; z-index: 2; }

  /* 导航：四个词收窄排一排 */
  .nav { gap: 24px; padding: 12px 10px; font-size: 18px; }

  /* 关于梨：两栏变竖排，地球缩小。第二页也撑满手机一整屏（8/6 傍晚梨亲定），跟大门一个比例一屏一景，
     min-height 是至少一屏，内容多的话屏自己跟着长，box-sizing 让内边距也算在一屏里。
     标题头上留够空白（8/6 傍晚梨亲定·顶距 50 改 100），字不贴脑门，露出星空背景，想调拧 100 */
  .about { padding: 100px 24px 200px; min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
  .about-title { font-size: 24px; margin: 0 0 30px; }
  .content-row { flex-direction: column; gap: 24px; }
  .text-left { width: 100%; font-size: 24px; }
  .text-right { width: 100%; font-size: 18px; margin-top: 0; }
  .earth-wrapper { width: 360px; height: 150px; }
  .earth { width: 360px; height: 360px; }

  /* 作品：状态卡和窗口上下叠，窗口阴影收窄 */
  .features { grid-template-columns: 1fr; padding: 60px 20px; gap: 30px; }
  .status-card { max-width: 320px; margin: 0 auto; width: 100%; }
  .window { box-shadow: 10px 10px 0 var(--blue); }
  .titlebar { font-size: 14px; }
  .window-main { padding: 20px; min-height: 0; }
  .window-hello { font-size: 26px; }
  .window-text { font-size: 18px; }
  .window-buttons { gap: 12px; }
  .pill-btn { font-size: 18px; padding: 8px 20px; }

  /* 结尾：照电脑版的正常比例·气泡飘在右上·小宠物站在底下隔空喊话 */
  .closing { padding: 50px 24px; min-height: 440px; }
  .closing-title { top: 40px; left: 24px; font-size: 24px; }
  .bubble-wrap { top: 170px; left: auto; right: 50px; transform: none; align-items: flex-start; } /* 8/6 傍晚梨亲定·气泡和小机器人整体往左 15 格（right 30 改 45），一组一起动，想调拧 45 */
  .bubble { font-size: 18px; padding: 15px 20px; margin-bottom: 70px; max-width: 300px; }
  .mini-pet { margin-left: 30px; margin-top: 0; }

  /* 联系我们：贴紧右下角，小小一颗（8/6 傍晚梨亲定） */
  .contact-btn { top: auto; bottom: 14px; left: auto; right: 14px; margin: 0; font-size: 12px; padding: 3px 10px; border-width: 2px; }

  /* 页脚：窄了自动换行 */
  .site-footer { flex-wrap: wrap; font-size: 14px; gap: 8px; padding: 15px 10px; }
}