/* ================= 首页（整页插画版） ================= */
/* 素材来自 KeepWords_PC_Complete_Assets，布局参照素材包的 preview.html */
body.home-mode { background: #fcf8ef; }
body.home-mode .wrap { max-width: none; width: 100%; padding: 0; }
body.home-mode .app-header { height: 82px; background: #fffdf8ef; border-bottom: 0; }
body.home-mode .header-inner { max-width: 1680px; padding: 0 clamp(20px, 6vw, 140px); }
body.home-mode .logo { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; gap: 12px; }
body.home-mode .logo-mark { width: 44px; height: 44px; border-radius: 11px; font-size: 25px; }
body.home-mode .tagline { display: none; }
body.home-mode .user-btn { background: #f2f3e8; border-radius: 999px; padding: 5px 16px 5px 5px; font-weight: 700; }
body.home-mode .user-dot { width: 42px; height: 42px; background: #e0efda; color: #0b4b2d; }
body.home-mode .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #e0efda; color: #0b4b2d; }

.home { width: 100%; max-width: none; margin: 0; background: #fcf8ef; position: relative; overflow: hidden; }
.home-scene {
  position: relative;
  height: clamp(620px, calc(100vh - 82px), 1080px);
  background: radial-gradient(ellipse at 52% 15%, #fffdf7 0, #fbf5e7 60%, #f4efd9 100%);
}
.home-decor { position: absolute; pointer-events: none; display: block; }

.h-window { left: -3.9vw; top: 4.1vh; width: clamp(150px, 12.5vw, 280px); z-index: 0; }
.h-leaves { left: -3.6vw; top: -8.2vh; width: clamp(260px, 23.8vw, 520px); z-index: 5; }
.h-note { right: 1vw; top: 4.7%; width: clamp(92px, 7vw, 150px); z-index: 2; }
.h-note img { width: 100%; display: block; }
.h-note b { position: absolute; left: 38%; top: 40%; color: #d59a57; font-size: 27px; transform: rotate(-5deg); }
.h-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(96px, 14%, 200px);
  background: #f3a66d url('/assets/home/wood-desktop.webp') center/cover no-repeat;
  border-top: 3px solid #eaa06b; z-index: 0;
}
.h-plant { bottom: 2.3%; width: clamp(180px, 16vw, 320px); z-index: 1; }
.h-plant.left { left: -4.2vw; }
.h-plant.right { right: -3.6vw; transform: scaleX(-1); }

.h-workspace { position: relative; width: min(1210px, 72vw); height: 100%; margin: 0 auto; z-index: 2; }
.h-heading {
  position: absolute; top: 6%; left: 0; margin: 0;
  font-size: clamp(34px, 3.4vw, 64px); letter-spacing: -2px; line-height: 1.25; color: #073f27;
}
.h-underline {
  position: absolute; top: 15.4%; left: 14.9vw;
  width: clamp(180px, 15vw, 300px); height: 11px; border-top: 7px solid #ffaa4b; border-radius: 50%; transform: rotate(-3deg);
}
.h-mascot-base { top: 7.7%; right: 6vw; width: clamp(230px, 20.2vw, 420px); z-index: 1; }
.h-mascot { top: 0; right: 9vw; width: clamp(165px, 14.2vw, 300px); z-index: 2; }

.h-cards {
  position: absolute; top: 26%; left: 0; right: 0;
  display: grid; grid-template-columns: 1.42fr 1fr; gap: clamp(12px, 1.2vw, 26px); z-index: 4;
}
.h-summary {
  min-height: clamp(330px, 38vh, 440px); padding: 22px 28px; background: #fff; border: 5px solid #fff;
  border-radius: 30px; box-shadow: 0 7px 12px #52644320; display: flex; flex-direction: column;
}
.h-tag {
  display: inline-flex; align-items: center; gap: 7px; background: #e7f3ca; border-radius: 999px;
  color: #14562d; font-size: 21px; font-weight: 800; padding: 5px 18px 5px 8px; width: max-content;
}
.h-tag img { width: 32px; height: 32px; }
.h-metrics { display: grid; grid-template-columns: 1fr 1fr 1.15fr; margin: 20px 0 22px; }
.h-metric { padding: 0 12px; border-right: 1px solid #e8ece7; text-align: center; }
.h-metric:last-child { border: 0; }
.h-metric strong {
  display: block; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; color: #0a4730;
  font-variant-numeric: tabular-nums;
}
.h-metric:nth-child(2) strong { color: #12885a; }
.h-metric small { display: block; margin-top: 8px; color: #64716b; font-size: 15px; font-weight: 600; }
.h-rule { height: 1px; background: #e9ece7; }
.h-progress-head { display: flex; justify-content: space-between; align-items: center; font-size: 19px; font-weight: 800; margin: 18px 0 12px; }
.h-progress-head strong { font-size: 23px; color: #168b5a; }
.h-progress { height: 16px; background: #e9eee6; border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.h-progress span { display: block; height: 100%; background: #15935d; border-radius: inherit; transition: width 0.3s; }
.h-start {
  margin-top: auto; height: 58px; border-radius: 16px; border: 0; background: #15935d; color: #fff;
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.h-start.done { background: #b3c8bf; cursor: default; }
.h-start img { width: 30px; height: 30px; }

.h-modes { display: grid; gap: 16px; }
.h-mode {
  position: relative; overflow: hidden; border: 5px solid #fff; border-radius: 26px;
  box-shadow: 0 7px 12px #52644320; padding: 22px; min-height: clamp(155px, 18vh, 210px);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: pointer;
}
.h-mode.purple { background: linear-gradient(125deg, #f4edff, #e7def7); }
.h-mode.orange { background: linear-gradient(125deg, #fff1df, #ffead0); }
.h-mode-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.h-mode-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; }
.purple .h-mode-icon { background: #e3d5f8; }
.orange .h-mode-icon { background: #ffdfb3; }
.h-mode-icon img { width: 32px; height: 32px; }
.h-mode-title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.purple .h-mode-title { color: #423069; }
.orange .h-mode-title { color: #754114; }
.h-cta {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  margin-top: auto; padding: 9px 24px; border-radius: 999px; color: #fff; font-size: 18px; font-weight: 800;
}
.h-cta img { width: 16px; }
.purple .h-cta { background: linear-gradient(#a887e0, #7d56b6); }
.orange .h-cta { background: linear-gradient(#ffb054, #f07a24); }
.h-mode-art { position: absolute; bottom: -2px; right: 0; width: 180px; z-index: 1; pointer-events: none; }
.orange .h-mode-art { width: 168px; }

.h-calendar { position: absolute; left: -3.1vw; bottom: 0.9%; width: clamp(150px, 11.2vw, 230px); z-index: 4; }
.h-calendar img { width: 100%; display: block; }
.h-calendar-copy {
  position: absolute; left: 20%; right: 12%; top: 30%; text-align: center;
  font-size: 15px; font-weight: 900; color: #175433; line-height: 1.15;
}
.h-calendar-copy span { display: block; font-size: 42px; color: #f17c2c; line-height: 1; }
.h-calendar-copy small { font-size: 13px; color: #175433; }
.h-desk-books { position: absolute; left: 7vw; bottom: 1.9%; width: clamp(150px, 11.8vw, 250px); z-index: 3; pointer-events: none; }
.h-open-book { position: absolute; right: 4.6vw; bottom: 0.9%; width: clamp(220px, 17.6vw, 380px); z-index: 3; pointer-events: none; }
.h-pencil-cup { position: absolute; right: -0.5vw; bottom: 1.4%; width: clamp(96px, 7.6vw, 165px); z-index: 4; pointer-events: none; }

@media (max-width: 980px) {
  body.home-mode .wrap { padding: 0 16px 36px; }
  body.home-mode .app-header { height: 70px; }
  .home-scene { height: auto; padding: 22px 0 28px; }
  .home-decor,
  .h-calendar,
  .h-desk-books,
  .h-open-book,
  .h-pencil-cup,
  .h-floor,
  .h-mascot,
  .h-mascot-base,
  .h-underline,
  .h-plant { display: none; }
  .h-workspace { width: 100%; height: auto; }
  .h-heading { position: static; font-size: 29px; letter-spacing: -1px; margin: 0 0 22px; }
  .h-cards { position: static; grid-template-columns: 1fr; gap: 14px; }
  .h-summary { min-height: 0; padding: 20px; border-width: 0; box-shadow: 0 6px 18px #5264431a; }
  .h-metrics { margin: 16px 0 18px; }
  .h-modes { gap: 14px; }
  .h-mode { min-height: 150px; border-width: 0; }
  .h-mode-art { width: 132px; }
  .h-start { margin-top: 22px; }
}
