/* 首页（index.php）：由旧站 page.css + guide.css 迁移，全部限定在 .home 内，不影响模板其他页面 */
  .home {
  --blue: #254dff;
  --orange: #ff5515;
  --content: 62.61vw; }
  .home { box-sizing: border-box; }
  .home {
  margin: 0;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff; }
  .home a { color: inherit; text-decoration: none; }
  .home a:focus-visible, .home button:focus-visible, .home summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
  .home img { display: block; }
  .home button { font: inherit; }
  .home h1, .home h2, .home h3, .home p, .home figure { margin: 0; }
  .home .content { width: var(--content); margin-inline: auto; }
  .home .hero { height: 51.48vw; position: relative; background: url("/images/main-top_cd2f79d.webp") center / cover no-repeat; }
  .home .hero h1 { position: absolute; left: 50%; top: 10.57vw; transform: translateX(-50%); width: 28.04vw; }
  .home .hero h1 img { width: 100%; height: auto; }
  .home .hero-pet, .home .hero-typing { position: absolute; object-fit: contain; }
  .home .hero-pet { left: 14.61vw; top: 20.43vw; width: 14.09vw; height: 11.52vw; }
  .home .hero-typing { left: 23.74vw; top: 29.61vw; width: 28.91vw; height: 11.52vw; }
  .home .download { display: inline-flex; align-items: center; justify-content: center; gap: .45vw; background: #fff; color: var(--blue); border-radius: 4vw; height: 3.13vw; min-width: 10.04vw; font-size: 1.04vw; font-weight: 500; }
  .home .download img { width: 1.22vw; height: 1.22vw; }
  .home .hero-download { position: absolute; top: 18.3vw; left: 50%; transform: translateX(-50%); }
  .home h2 { text-align: center; font-size: 2.174vw; font-weight: 650; line-height: 3.48vw; }
  .home h2 span { color: var(--orange); }
  .home .subtitle { text-align: center; color: #0009; font-size: .783vw; line-height: 2.09vw; margin-top: .26vw; }
  .home .skin-section, .home .pet-section, .home .search-section, .home .mobile-section { margin-top: 6.52vw; }
  .home .skin-window { overflow: hidden; }
  .home .skin-track { display: flex; width: max-content; animation: skin-scroll 35s linear infinite; animation-delay: 2s; }
  .home .skin-track:hover, .home .skin-track:focus-within { animation-play-state: paused; }
  .home .skin-track img { flex: none; width: 131.09vw; height: 24.3vw; margin-right: 1.96vw; }
@keyframes skin-scroll { to { transform: translateX(-50%); } }
  .home .pet-gallery { position: relative; margin-top: 2.61vw; aspect-ratio: 2888 / 1420; }
  .home .pet-panel { position: relative; height: 100%; overflow: hidden; border-radius: 1.22vw; }
  .home .pet-poster { width: 100%; height: 100%; object-fit: contain; }
  .home .pet-overlay { position: absolute; object-fit: contain; pointer-events: none; }
  .home .pet-1 .pet-overlay { width: 53.5%; height: 81.7%; left: 23.8%; bottom: 17.8%; }
  .home .pet-2 .pet-overlay { width: 26.78%; height: 81.69%; left: 47.99%; bottom: 6.62%; }
  .home .pet-3 .pet-overlay { width: 26.78%; height: 81.69%; left: 43.35%; bottom: 17.75%; }
  .home .pet-4 .pet-overlay { width: 26.78%; height: 81.69%; left: 45.76%; bottom: 23.66%; }
  .home .pet-controls { position: absolute; right: 3.6%; top: 10%; bottom: 10%; display: flex; flex-direction: column; justify-content: space-between; gap: .45vw; }
  .home .pet-controls button { border: 0; padding: 0; background: transparent; border-radius: 50%; cursor: pointer; opacity: .72; width: 5.2vw; aspect-ratio: 1; }
  .home .pet-controls button:hover, .home .pet-controls button[aria-pressed="true"] { opacity: 1; }
  .home .pet-controls img { width: 100%; height: 100%; object-fit: contain; }
  .home .search-cards { margin-top: 2.61vw; display: grid; gap: 1.3vw; }
  .home .search-cards img { width: 100%; height: auto; }
  .home .mobile-showcase { width: 100%; height: auto; margin-top: 2.5vw; }
  .home .bottom-download { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; height: 7.83vw; display: flex; justify-content: center; align-items: end; padding-bottom: 1.12vw; background: linear-gradient(transparent, #fff 44%); }
  .home .bottom-download .download { border: 1px solid var(--blue); min-width: 10.43vw; }
  .home .bottom-download:not(.visible) { visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .home .skin-track { animation: none; }
}
@media (max-width: 700px) {
  .home { --content: 90vw; }
  .home .download { min-width: 16vw; min-height: 5vw; font-size: 2vw; }
  .home .download img { width: 2vw; height: 2vw; }
  .home h2 { font-size: 4vw; line-height: 1.4; }
  .home .subtitle { font-size: 2vw; line-height: 1.6; }
  .home .pet-controls button { width: 7vw; }
  .home .bottom-download { height: 11vw; }
  .home .bottom-download .download { min-width: 16vw; }
}

  .home .guide-install, .home .guide-tips, .home .guide-tutorials { margin-top: 6.52vw; }
  .home .guide-more { text-align: center; margin-top: 1.6vw; font-size: .85vw; }
  .home .guide-more a { color: var(--blue); }
  .home .guide-more a:hover { text-decoration: underline; }
  .home .mock {
  position: relative; overflow: hidden; border-radius: .9vw; background: #fff;
  border: 1px solid #e6eaf3; box-shadow: 0 .6vw 2vw #1c3ba614; font-size: .72vw; color: #333; }
  .home .mock-bar { display: flex; align-items: center; gap: .3vw; height: 1.9vw; padding: 0 .8vw; background: #f5f7fc; border-bottom: 1px solid #eceff5; }
  .home .mock-bar i { width: .5vw; height: .5vw; border-radius: 50%; background: #ff6058; }
  .home .mock-bar i:nth-child(2) { background: #ffbd2e; }
  .home .mock-bar i:nth-child(3) { background: #28c940; }
  .home .mock-bar span { margin-left: .5vw; color: #0008; font-size: .68vw; }
  .home .install-steps { list-style: none; margin-top: 2.6vw; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4vw; counter-reset: none; }
  .home .install-step {
  position: relative; display: flex; flex-direction: column; gap: 1.2vw; padding: 1.5vw;
  border-radius: 1.2vw; background: linear-gradient(180deg, #f2f5ff, #fff 70%); border: 1px solid #e8edfb; }
  .home .install-step:not(:last-child)::after {
  content: ""; position: absolute; right: -1.05vw; top: 2.4vw; width: .7vw; height: .7vw; z-index: 1;
  border: solid #b9c6f5; border-width: 2px 2px 0 0; transform: rotate(45deg); }
  .home .install-head { display: flex; gap: .9vw; align-items: flex-start; }
  .home .install-head b { flex: none; font-size: 1.9vw; line-height: 1; color: var(--blue); font-weight: 800; font-family: ui-rounded, "SF Pro Rounded", sans-serif; }
  .home .install-head h3 { font-size: 1.05vw; color: #161616; }
  .home .install-head p { margin-top: .35vw; font-size: .76vw; line-height: 1.7; color: #0009; }
  .home .install-step .mock { margin-top: auto; height: 12.6vw; }
  .home .dl-row { display: flex; align-items: center; gap: .7vw; padding: .9vw .9vw .4vw; }
  .home .dl-row.is-muted { opacity: .45; padding-top: .5vw; }
  .home .dl-file { flex: none; width: 2.2vw; height: 2.6vw; border-radius: .35vw; display: grid; place-items: center; color: #fff; font-size: .55vw; font-weight: 700; background: var(--blue); }
  .home .is-muted .dl-file { background: #999; }
  .home .dl-info { flex: 1; min-width: 0; display: grid; gap: .3vw; }
  .home .dl-info strong { font-size: .72vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .home .dl-info em { font-style: normal; font-size: .62vw; color: #22a35a; }
  .home .is-muted .dl-info em { color: #d9534f; }
  .home .dl-track { height: .3vw; border-radius: .3vw; background: #eceff5; overflow: hidden; }
  .home .dl-track span { display: block; height: 100%; background: #22a35a; }
  .home .dl-open { flex: none; padding: .25vw .8vw; border-radius: 1vw; color: #fff; background: var(--blue); font-size: .65vw; }
  .home .setup-body { display: flex; flex-direction: column; align-items: center; gap: .45vw; padding: .9vw 1.2vw; }
  .home .setup-body img { width: 6vw; height: auto; }
  .home .setup-track { width: 100%; height: .35vw; border-radius: .3vw; background: #eceff5; overflow: hidden; }
  .home .setup-track span { display: block; width: 68%; height: 100%; background: linear-gradient(90deg, #6d86ff, var(--blue)); }
  .home .setup-pct { font-size: .62vw; color: #0008; }
  .home .setup-body label { align-self: flex-start; display: flex; align-items: center; gap: .35vw; font-size: .62vw; color: #0009; }
  .home .setup-body label i { width: .65vw; height: .65vw; border-radius: .15vw; border: 1px solid #bbb; }
  .home .setup-body label i.is-on { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat; }
  .home .setup-btn { margin-top: .1vw; padding: .3vw 1.6vw; border-radius: 1vw; color: #fff; background: var(--blue); font-size: .65vw; }
  .home .def-body { padding: 1vw 1.1vw; display: grid; gap: .5vw; }
  .home .def-label { font-size: .68vw; color: #0009; }
  .home .def-select { border: 1px solid #d5ddf3; border-radius: .5vw; overflow: hidden; }
  .home .def-select span { display: block; padding: .38vw .7vw; font-size: .68vw; color: #0008; }
  .home .def-select span + span { border-top: 1px solid #f0f2f7; }
  .home .def-select .is-picked { color: var(--blue); background: #eef2ff; font-weight: 600; position: relative; }
  .home .def-select .is-picked::after { content: "✓"; position: absolute; right: .7vw; }
  .home .def-ok { font-size: .65vw; color: #22a35a; }
  .home .tip-rows { margin-top: 2.6vw; display: grid; gap: 1.6vw; }
  .home .tip-row {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 3vw; align-items: center;
  padding: 2.4vw 2.8vw; border-radius: 1.4vw; background: #f7f8fb; }
  .home .tip-row.is-reverse { grid-template-columns: 1.08fr 1fr; }
  .home .tip-row.is-reverse .tip-text { order: 2; }
  .home .tip-text h3 { font-size: 1.5vw; color: #161616; line-height: 1.4; }
  .home .tip-text p { margin-top: .8vw; font-size: .85vw; line-height: 1.9; color: #000a; }
  .home .tip-text ul { margin: .9vw 0 0; padding: 0; list-style: none; display: grid; gap: .45vw; font-size: .8vw; color: #000b; }
  .home .tip-text li { position: relative; padding-left: 1.2vw; }
  .home .tip-text li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5vw; height: .5vw; border-radius: 50%; background: var(--orange); opacity: .85; }
  .home .tip-text a { display: inline-block; margin-top: 1.2vw; color: var(--blue); font-size: .85vw; font-weight: 600; }
  .home .tip-text a:hover { text-decoration: underline; }
  .home .tip-text kbd {
  display: inline-block; min-width: 1.4em; padding: 0 .4em; font: inherit; font-size: .9em; line-height: 1.5; text-align: center;
  color: var(--blue); background: #fff; border: 1px solid #d5ddff; border-bottom-width: 2px; border-radius: .3vw; }
  .home .mock-ime { padding: 1.6vw 1.6vw 2vw; min-height: 14vw; }
  .home .doc-lines { display: grid; gap: .6vw; }
  .home .doc-lines span { height: .55vw; border-radius: .3vw; background: #eef0f5; }
  .home .doc-lines .short { width: 45%; position: relative; }
  .home .doc-lines .short::after { content: ""; position: absolute; right: -.5vw; top: -.35vw; width: 2px; height: 1.25vw; background: var(--blue); animation: guide-blink 1s steps(1) infinite; }
  .home .ime-box {
  position: relative; margin-top: 1.6vw; margin-left: 40%; width: max-content; min-width: 14vw;
  border-radius: .7vw; background: #fff; border: 1px solid #e3e8f5; box-shadow: 0 .5vw 1.6vw #1c3ba61f; overflow: hidden; }
  .home .ime-input { padding: .5vw .9vw .4vw; color: var(--blue); font-size: .8vw; letter-spacing: .02em; border-bottom: 1px solid #f0f2f7; }
  .home .ime-cands { display: flex; gap: 1vw; padding: .55vw .9vw .65vw; font-size: 1vw; color: #222; white-space: nowrap; }
  .home .ime-cands em { font-style: normal; font-size: .7vw; color: #0007; margin-right: .2vw; }
  .home .ime-cands small { font-size: .62vw; color: #0007; margin-left: .2vw; }
  .home .ime-cands .is-first { color: var(--orange); font-weight: 600; }
  .home .ime-cands .is-first em, .home .ime-cands .is-first small { color: var(--orange); opacity: .8; }
@keyframes guide-blink { 50% { opacity: 0; } }
  .home .is-money { display: grid; gap: .6vw; align-content: start; }
  .home .form-row { display: flex; justify-content: space-between; align-items: center; padding: .6vw .9vw; border-radius: .5vw; border: 1px solid #eceff5; font-size: .72vw; }
  .home .form-row span { color: #0008; }
  .home .form-row b { font-weight: 600; }
  .home .form-row.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px #254dff1f; }
  .home .form-row .caret { width: 2px; height: 1vw; background: var(--blue); animation: guide-blink 1s steps(1) infinite; }
  .home .is-money .ime-box { margin: .2vw 0 0 auto; }
  .home .mock-phrase { align-self: stretch; }
  .home .phrase-table { padding: .9vw 1.1vw 1.2vw; display: grid; gap: .45vw; }
  .home .phrase-table > div { display: grid; grid-template-columns: 3.4vw 1fr; gap: .8vw; align-items: center; padding: .55vw .8vw; border-radius: .5vw; background: #f7f8fb; font-size: .72vw; }
  .home .phrase-table .phrase-head { background: none; color: #0007; font-size: .65vw; padding-block: 0; }
  .home .phrase-table code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--blue); font-weight: 600; }
  .home .phrase-table span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home .phrase-table .is-new { background: none; border: 1px dashed #c9d4ff; color: var(--blue); }
  .home .tut-list { margin-top: 2.4vw; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1vw; }
  .home .tut-item {
  display: flex; gap: 1vw; padding: 1.3vw 1.4vw; border-radius: 1vw; background: #fff; border: 1px solid #eceff5;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
  .home .tut-item:hover { border-color: #c9d4ff; box-shadow: 0 .4vw 1.6vw #254dff14; transform: translateY(-2px); }
  .home .tut-item i {
  flex: none; width: 2.6vw; height: 2.6vw; border-radius: .7vw; display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: .95vw; color: #fff; background: linear-gradient(135deg, #4d6bff, #254dff); }
  .home .tut-item h3 { font-size: .95vw; color: #161616; line-height: 1.5; }
  .home .tut-item:hover h3 { color: var(--blue); }
  .home .tut-item p { margin-top: .3vw; font-size: .76vw; line-height: 1.7; color: #0009; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .home .doc-lines .short::after, .home .form-row .caret { animation: none; }
}
@media (max-width: 700px) {
  .home .guide-more { font-size: 3vw; margin-top: 4vw; }
  .home .mock { font-size: 2.6vw; border-radius: 2.4vw; }
  .home .mock-bar { height: 6vw; gap: 1vw; padding: 0 2.4vw; }
  .home .mock-bar i { width: 1.6vw; height: 1.6vw; }
  .home .mock-bar span { font-size: 2.4vw; margin-left: 1.4vw; }
  .home .install-steps { grid-template-columns: 1fr; gap: 4vw; margin-top: 5vw; }
  .home .install-step { padding: 4vw; gap: 3vw; border-radius: 3vw; }
  .home .install-step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -2.6vw; width: 2vw; height: 2vw; transform: translateX(-50%) rotate(135deg); }
  .home .install-head { gap: 3vw; }
  .home .install-head b { font-size: 6vw; }
  .home .install-head h3 { font-size: 3.6vw; }
  .home .install-head p { font-size: 2.8vw; }
  .home .install-step .mock { height: auto; min-height: 36vw; }
  .home .dl-row { gap: 2.4vw; padding: 3vw 3vw 1.4vw; }
  .home .dl-file { width: 7vw; height: 8.4vw; font-size: 2vw; border-radius: 1.2vw; }
  .home .dl-info strong { font-size: 2.6vw; }
  .home .dl-info em { font-size: 2.2vw; }
  .home .dl-track { height: 1vw; }
  .home .dl-open { font-size: 2.4vw; padding: .8vw 2.6vw; border-radius: 3vw; }
  .home .setup-body { gap: 1.6vw; padding: 3vw 4vw; }
  .home .setup-body img { width: 20vw; }
  .home .setup-track { height: 1.2vw; }
  .home .setup-pct, .home .setup-body label, .home .def-ok { font-size: 2.4vw; }
  .home .setup-body label { gap: 1.2vw; }
  .home .setup-body label i { width: 2.4vw; height: 2.4vw; }
  .home .setup-btn { font-size: 2.6vw; padding: 1vw 5vw; border-radius: 3vw; }
  .home .def-body { padding: 3vw 3.6vw; gap: 1.8vw; }
  .home .def-label, .home .def-select span { font-size: 2.6vw; }
  .home .def-select { border-radius: 1.6vw; }
  .home .def-select span { padding: 1.4vw 2.4vw; }
  .home .tip-rows { gap: 4vw; margin-top: 5vw; }
  .home .tip-row, .home .tip-row.is-reverse { grid-template-columns: 1fr; gap: 5vw; padding: 5vw; border-radius: 3.4vw; }
  .home .tip-row.is-reverse .tip-text { order: 0; }
  .home .tip-text h3 { font-size: 4.6vw; }
  .home .tip-text p { font-size: 3vw; margin-top: 2vw; }
  .home .tip-text ul { font-size: 2.9vw; gap: 1.4vw; margin-top: 2.6vw; }
  .home .tip-text li { padding-left: 3.4vw; }
  .home .tip-text li::before { width: 1.5vw; height: 1.5vw; }
  .home .tip-text a { font-size: 3vw; margin-top: 3vw; }
  .home .tip-text kbd { border-radius: 1vw; }
  .home .mock-ime { padding: 5vw; min-height: 0; }
  .home .doc-lines { gap: 2vw; }
  .home .doc-lines span { height: 1.8vw; }
  .home .doc-lines .short::after { height: 4vw; top: -1.1vw; right: -1.6vw; }
  .home .ime-box { margin: 5vw 0 0 auto; min-width: 0; border-radius: 2vw; }
  .home .ime-input { font-size: 2.8vw; padding: 1.6vw 3vw 1.2vw; }
  .home .ime-cands { font-size: 3.4vw; gap: 3vw; padding: 1.8vw 3vw 2.2vw; }
  .home .ime-cands em { font-size: 2.4vw; }
  .home .ime-cands small { font-size: 2.2vw; }
  .home .is-money { gap: 2vw; }
  .home .form-row { font-size: 2.6vw; padding: 2vw 3vw; border-radius: 1.6vw; }
  .home .form-row .caret { height: 3.4vw; }
  .home .phrase-table { padding: 3vw 3.6vw 4vw; gap: 1.6vw; }
  .home .phrase-table > div { grid-template-columns: 9vw 1fr; gap: 2.4vw; padding: 1.8vw 2.6vw; border-radius: 1.6vw; font-size: 2.6vw; }
  .home .phrase-table .phrase-head { font-size: 2.3vw; }
  .home .tut-list { grid-template-columns: 1fr; gap: 2.4vw; margin-top: 5vw; }
  .home .tut-item { padding: 3.6vw; gap: 3vw; border-radius: 2.6vw; }
  .home .tut-item i { width: 9vw; height: 9vw; font-size: 3.2vw; border-radius: 2.4vw; }
  .home .tut-item h3 { font-size: 3.4vw; }
  .home .tut-item p { font-size: 2.8vw; }
}


/* 底部悬浮下载条出现时，给页脚留出空间 */
body:has(.home .bottom-download) .site-footer .footer-inner { padding-bottom: 9vw; }
.home .download { white-space: nowrap; }
