/* src/pet/home.css */
:root {
  --pet-green: #45664e;
  --pet-ink: #203c2d;
  --pet-muted: #7c8a7f;
  --pet-bg: #f8f7f1;
}
body.pet-home-active {
  margin: 0;
  background: var(--pet-bg);
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
.pet-home-active uni-page,
.pet-home-active uni-page-head {
  visibility: hidden;
}
.pet-home-active uni-tabbar {
  visibility: visible;
}
#pet-home {
  position: fixed;
  inset: 0 0 calc(50px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--pet-bg);
  z-index: 800;
  color: var(--pet-ink);
}
#pet-home *,
.pet-modal * {
  box-sizing: border-box;
}
#pet-home button,
.pet-modal button {
  font: inherit;
  cursor: pointer;
}
#pet-home button {
  border: 0;
  color: inherit;
}
#pet-home svg,
.pet-modal svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
#pet-home button:focus-visible,
.pet-modal button:focus-visible {
  outline: 2px solid #da9c58;
  outline-offset: 3px;
}
.pet-main {
  max-width: 760px;
  margin: auto;
  padding: 24px 22px 30px;
}
.pet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pet-logo {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  color: var(--pet-ink);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 1px;
}
.pet-logo svg {
  width: 33px !important;
  height: 33px !important;
}
.pet-logo small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--pet-muted);
  font-weight: 500;
  margin-top: 3px;
}
.pet-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e7dd !important;
  border-radius: 50%;
  background: transparent;
}
.pet-icon svg {
  width: 21px !important;
}
.pet-greeting {
  margin: 30px 0 19px;
}
.pet-greeting > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8b988b;
}
.pet-greeting h1 {
  font-size: 25px;
  line-height: 1.45;
  margin: 7px 0;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.pet-greeting h1 span {
  color: #d7944b;
}
.pet-greeting p {
  font-size: 11px;
  color: var(--pet-muted);
  margin: 6px 0;
}
.pet-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
  background: #fff;
  width: 100%;
  padding: 13px 16px;
  box-shadow: 0 4px 22px #2b493006;
  font-size: 12px !important;
  color: #89928a !important;
  text-align: left;
}
.pet-search svg {
  width: 18px !important;
  height: 18px !important;
}
.pet-hero {
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  min-height: 216px;
  background: #e8eadc url(/mobile/pet/hero.png) 63% center/cover;
  position: relative;
  display: flex;
  align-items: center;
}
.pet-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #f2ede3ee 0%,
      #f2ede380 35%,
      transparent 63%);
}
.pet-hero > div {
  position: relative;
  padding: 25px 20px;
  max-width: 65%;
}
.pet-eyebrow {
  font-size: 6px;
  letter-spacing: 1.4px;
  color: #74816d;
}
.pet-hero h2 {
  font-size: 25px;
  line-height: 1.36;
  margin: 10px 0;
  font-weight: 800;
}
.pet-hero p {
  font-size: 11px;
  margin: 0 0 17px;
  color: #63745f;
}
.pet-hero button {
  padding: 9px 14px;
  border-radius: 20px;
  background: var(--pet-green);
  color: #fff !important;
  font-size: 10px !important;
}
.pet-profile {
  margin: 16px 0 26px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 16px;
  background: white;
  box-shadow: 0 7px 20px #29432a04;
  text-align: left;
}
.pet-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eee9dc;
  color: #657d62;
}
.pet-profile strong {
  display: block;
  font-size: 16px;
}
.pet-profile div > span {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: var(--pet-muted);
}
.pet-profile small {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 10px;
  color: #75836f;
  white-space: nowrap;
}
.pet-profile small svg {
  width: 12px !important;
}
.pet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 22px 0 12px;
}
.pet-section-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.2px;
}
.pet-section-head > span {
  font-size: 8px;
  color: #96a08e;
  letter-spacing: 0.5px;
}
.pet-section-head > button {
  background: transparent;
  font-size: 10px !important;
  color: var(--pet-muted) !important;
}
.pet-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pet-tool {
  min-height: 91px;
  display: flex;
  gap: 11px;
  padding: 17px 13px;
  align-items: center;
  border-radius: 17px;
  text-align: left;
  border: 2px solid white !important;
}
.pet-tool.sage {
  background: #eaf0e8;
}
.pet-tool.peach {
  background: #faf0e1;
}
.pet-tool > svg {
  width: 32px !important;
  height: 32px !important;
  color: #5b7b60;
}
.pet-tool.peach > svg {
  color: #b6884a;
}
.pet-tool > span {
  margin-left: auto;
  font-size: 21px;
  color: #7c9279;
}
.pet-tool h3 {
  font-size: 14px;
  margin: 0 0 6px;
  font-weight: 700;
  white-space: nowrap;
}
.pet-tool p {
  font-size: 9px;
  color: #8b9589;
  margin: 0;
  white-space: nowrap;
}
.pet-plans {
  background: #fff;
  border-radius: 17px;
  padding: 4px 15px;
}
.pet-plans > button {
  padding: 16px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  background: transparent;
  width: 100%;
  text-align: left;
}
.pet-plans > button + button {
  border-top: 1px solid #f0f1eb !important;
}
.pet-plans svg {
  width: 21px !important;
  color: #ac8b57;
}
.pet-plans time {
  font-size: 12px;
  color: #687d65;
}
.pet-plans strong {
  font-size: 12px;
  font-weight: 600;
}
.pet-plans span {
  margin-left: auto;
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 20px;
  background: #eef4e8;
  color: #658361;
}
.pet-plans span.neutral {
  background: #f6f5ef;
  color: #8b9587;
}
.pet-plans b {
  font-size: 15px;
  color: #a4afa0;
}
.pet-plans > p {
  padding: 14px;
  font-size: 12px;
  color: #85917f;
}
.pet-inspiration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pet-inspiration button {
  background: #e7eddf;
  border-radius: 16px;
  padding: 19px 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 172px;
}
.pet-inspiration button + button {
  background: #f4e9d8;
}
.pet-inspiration span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #85947b;
}
.pet-inspiration h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin: 13px 0;
}
.pet-inspiration p {
  font-size: 9px;
  color: #92987e;
  margin-bottom: 17px;
}
.pet-inspiration b {
  font-size: 10px;
  font-weight: 500;
}
.pet-footnote {
  font-size: 10px;
  text-align: center;
  color: #98a18f;
  margin-top: 29px;
}
.pet-footnote span {
  display: block;
  font-size: 8px;
  margin-top: 6px;
  opacity: 0.8;
}
#pet-original-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  background: #fff;
  height: calc(50px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #f5f5f5;
  font-family:
    Arial,
    "Microsoft YaHei",
    sans-serif;
}
#pet-original-tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #999;
  text-decoration: none;
  font-size: 10px;
}
#pet-original-tabs a.active {
  color: #1fbaea;
}
#pet-original-tabs img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.pet-modal {
  position: fixed;
  inset: 0;
  background: #182c2355;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  font-family:
    system-ui,
    "Microsoft YaHei",
    sans-serif;
  color: #243b2d;
}
.pet-sheet {
  width: min(100%, 520px);
  max-height: 88dvh;
  background: #fafaf5;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 80px #2033241a;
  overflow: auto;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.pet-sheet > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px;
  border-bottom: 1px solid #e9ede2;
  position: sticky;
  top: 0;
  background: #fafaf5;
  z-index: 1;
}
.pet-sheet h2 {
  font-size: 20px;
  margin: 0;
}
.pet-sheet h3 {
  font-size: 15px;
  margin-top: 24px;
}
.pet-sheet > header > button {
  font-size: 27px;
  border: 0;
  background: #edf1e7;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #78866b;
}
.pet-sheet-body {
  padding: 20px 23px;
}
.pet-help {
  font-size: 12px;
  line-height: 1.8;
  color: #87917f;
}
.pet-sheet label {
  display: block;
  font-size: 12px;
  color: #718168;
  margin: 14px 0;
}
.pet-sheet input,
.pet-sheet select {
  display: block;
  margin-top: 7px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dde5d5;
  background: #fff;
  border-radius: 10px;
  font: inherit;
  color: #29432f;
  box-sizing: border-box;
  min-width: 0;
}
.pet-primary {
  display: block;
  width: 100%;
  border: 0;
  background: #506f54;
  color: white;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  margin-top: 20px;
}
.pet-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pet-meals > div,
.pet-history > div {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e6ecdf;
  padding: 14px 0;
  font-size: 12px;
}
.pet-meals time {
  margin-left: auto;
}
.pet-meals button,
.pet-history button {
  border: 0;
  border-radius: 8px;
  background: #e9efdf;
  color: #718367;
  padding: 5px 9px;
  font-size: 11px;
}
.pet-history span {
  flex: 1;
}
.pet-history strong,
.pet-history small {
  display: block;
}
.pet-history small {
  font-size: 10px;
  margin-top: 5px;
  color: #8b9586;
}
.pet-summary {
  background: #eaf0e2;
  border-radius: 14px;
  padding: 20px;
}
.pet-summary span {
  font-size: 12px;
  color: #839178;
  display: block;
}
.pet-summary strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}
.pet-clock {
  text-align: center;
  font-size: 56px;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  padding: 28px 0;
  color: #4b6c4d;
}
.pet-guide p {
  font-size: 13px;
  line-height: 1.9;
  color: #7f8d76;
}
.pet-guide small {
  font-size: 10px;
  color: #a3ab9d;
}
#pet-toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: 85%;
  width: max-content;
  padding: 13px 20px;
  background: #2b4539ee;
  color: white;
  border-radius: 14px;
  font: 13px/1.7 system-ui;
  z-index: 30000;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#pet-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.pet-dialog-open {
  overflow: hidden;
}
@media (min-width: 700px) {
  .pet-main {
    padding-top: 35px;
  }
  .pet-greeting h1 {
    font-size: 33px;
  }
  .pet-hero {
    min-height: 300px;
  }
  .pet-hero h2 {
    font-size: 38px;
  }
  .pet-tool {
    min-height: 110px;
  }
  .pet-tool h3 {
    font-size: 17px;
  }
  .pet-tool p {
    font-size: 12px;
  }
  .pet-hero > div {
    padding: 35px;
  }
  .pet-sheet {
    border-radius: 24px;
    max-height: 86vh;
  }
  .pet-modal {
    align-items: center;
  }
  .pet-top {
    margin-bottom: 30px;
  }
}
@media (max-width: 350px) {
  .pet-main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .pet-tool {
    gap: 7px;
    padding: 14px 9px;
  }
  .pet-tool h3 {
    font-size: 12px;
  }
  .pet-tool p {
    font-size: 8px;
  }
  .pet-tool > svg {
    width: 26px !important;
  }
  .pet-greeting h1 {
    font-size: 22px;
  }
  .pet-hero h2 {
    font-size: 22px;
  }
}
.pet-points > a {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e7eddf;
  border-radius: 16px;
  padding: 19px 16px;
  text-decoration: none;
  color: var(--pet-ink);
  min-height: 188px;
}
.pet-points > a + a {
  background: #f4e9d8;
}
.pet-points .pet-points-icon {
  position: absolute;
  right: 13px;
  top: 30px;
  opacity: 0.16;
  transform: rotate(-12deg);
}
.pet-points .pet-points-icon svg {
  width: 55px !important;
  height: 55px !important;
}
.pet-points h3 {
  position: relative;
}
.pet-points a:focus-visible {
  outline: 2px solid #da9c58;
  outline-offset: 3px;
}
html[data-pet-home="1"] #app uni-page,
html[data-pet-home="1"] #app uni-page-head {
  visibility: hidden !important;
}
