/* 昼夜切换 · 白天皮肤（二次元萌系）：复制自 templates/anime/style.css，末尾追加了昼夜切换按钮样式。
   修改 anime/style.css 的通用样式时请同步到这里。 */
/* 二次元萌系 · anime template for the 蜜桃AI agent download page.
   Contract classes and ids (see ../../script.js) are kept intact; everything
   else is purely visual. Text colours are chosen for WCAG AA on white and on
   the pastel page gradient. */

:root {
  color-scheme: light;
  --ink: #35224f;
  --muted: #5d4f75;
  --pink-ink: #b0266c;
  --purple-ink: #6d3fd6;
  --pink: #ff8cc0;
  --lilac: #b79cff;
  --sky: #8fd3ff;
  --grad: linear-gradient(120deg, #d6307f 0%, #a534c2 55%, #7c3aed 100%);
  --press: #5a2aa8;
  --card: #ffffff;
  --card-soft: #fff7fb;
  --line: #f0e3f5;
  --shadow: 0 18px 40px -18px rgba(150, 70, 190, .35), 0 4px 14px rgba(255, 140, 192, .12);
  --radius: 28px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; background: #f3e6ff; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--purple-ink);
  outline-offset: 3px;
  border-radius: 12px;
}
.button:focus-visible, .copy-button:focus-visible, .tool-link:focus-visible,
.header-contact:focus-visible, .runtime-download:focus-visible {
  outline: 3px solid var(--purple-ink);
  outline-offset: 4px;
  border-radius: 999px;
}

/* ---------- Pastel sky: gradient, blobs and sparkles ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(160deg, #ffd6e8 0%, #f1d9f6 30%, #e6dcff 58%, #d8f0ff 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .75;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-pink { width: 520px; height: 520px; left: -160px; top: -120px; background: radial-gradient(circle, #ffb8d9 0%, rgba(255, 184, 217, 0) 70%); }
.blob-lilac { width: 620px; height: 620px; right: -200px; top: 18%; background: radial-gradient(circle, #cdb8ff 0%, rgba(205, 184, 255, 0) 70%); animation-duration: 22s; }
.blob-sky { width: 560px; height: 560px; left: 20%; bottom: -260px; background: radial-gradient(circle, #b5e3ff 0%, rgba(181, 227, 255, 0) 70%); animation-duration: 26s; }
.spark {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 120, 190, .55);
  line-height: 1;
  animation: twinkle 3.6s ease-in-out infinite;
}
.s1 { left: 6%; top: 16%; font-size: 26px; }
.s2 { left: 24%; top: 34%; font-size: 18px; color: #ffc2de; animation-delay: .8s; }
.s3 { right: 7%; top: 11%; font-size: 30px; animation-delay: 1.6s; }
.s4 { right: 16%; top: 58%; font-size: 20px; animation-delay: 2.2s; }
.s5 { left: 10%; top: 70%; font-size: 22px; animation-delay: 1.1s; }
.s6 { left: 52%; top: 88%; font-size: 20px; color: #d6c4ff; animation-delay: 2.8s; }

@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(12deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-6px) rotate(var(--tilt, 0deg)); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 70% { transform: translateY(-1px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wiggle-in { from { transform: translateY(6px) scale(.97); } to { transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 138, .55); } 100% { box-shadow: 0 0 0 9px rgba(46, 204, 138, 0); } }

/* ---------- Header ---------- */
.header {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .72);
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(150, 70, 190, .35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: 1px; border-radius: 999px; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 4px 0 #f3c7e0; transform: rotate(-4deg); }
.brand-text { line-height: 1.15; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 3px; color: var(--pink-ink); font-weight: 700; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: #fde8f3; color: var(--pink-ink); }
.header-contact {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--press);
  transition: transform .15s, box-shadow .15s;
}
.header-contact:hover { animation: bounce .6s ease; }
.header-contact:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.card {
  background: var(--card);
  border: 1.5px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; }
.hero-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 3px 0 #f6c6de;
  transform: rotate(-2deg);
}
h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 1px;
}
h1 em {
  font-style: normal;
  color: var(--pink-ink);
  background: linear-gradient(transparent 62%, #ffd0e6 62%, #ffd0e6 92%, transparent 92%);
  padding: 0 4px;
}
.title-heart {
  display: inline-block;
  margin-left: 6px;
  color: #ff6fae;
  font-size: .7em;
  transform: rotate(14deg) translateY(-8px);
}
.hero-copy > p { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-tags li {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font-weight: 700;
  font-size: 14px;
  color: var(--purple-ink);
  box-shadow: 0 3px 0 #e2d6ff;
}
.hero-tags li:nth-child(1) { transform: rotate(-3deg); }
.hero-tags li:nth-child(2) { transform: rotate(2deg); color: var(--pink-ink); box-shadow: 0 3px 0 #f6c6de; }
.hero-tags li:nth-child(3) { transform: rotate(-1.5deg); color: #1d6a9a; box-shadow: 0 3px 0 #c6e6fb; }

/* Primary download entry point, visible on the first screen */
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.hero-download { min-height: 62px; padding: 0 34px; font-size: 19px; }
.hero-download-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 17px;
}
.hero-download-version { font-weight: 700; opacity: .92; }
.hero-meta { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* Phones: a docked bar so the download panel is one tap away anywhere on the page */
.mobile-download-bar { display: none; }

.hero-stage {
  display: grid;
  grid-template-columns: minmax(330px, 390px) 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

/* Advisor chat card (#customer-service) */
.chat-card {
  position: relative;
  padding: 22px;
  background: var(--card);
  border: 1.5px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.chat-sticker {
  position: absolute;
  top: -14px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 10px;
  background: #fff3a8;
  color: #6b4b00;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 #efd66a;
  --tilt: 6deg;
  transform: rotate(var(--tilt));
  animation: floaty 4s ease-in-out infinite;
}
.chat-top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.avatar { position: relative; flex: 0 0 auto; }
.avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #ffc4df, 0 6px 14px rgba(180, 80, 170, .25);
  background: #fdf1f8;
}
.online-dot {
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ecc8a;
  border: 2.5px solid #fff;
  animation: pulse 2s ease-out infinite;
}
.chat-id { min-width: 0; }
.chat-id h2 { font-size: 20px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.advisor-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 8px;
  background: #f1ebff;
  color: var(--purple-ink);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-2deg);
}
.chat-log { display: grid; gap: 10px; padding: 18px 0 16px; justify-items: start; }
.bubble {
  position: relative;
  max-width: 94%;
  padding: 10px 16px;
  border-radius: 6px 20px 20px 20px;
  background: #fdeef6;
  font-size: 14.5px;
  line-height: 1.65;
  animation: wiggle-in .5s ease both;
}
.bubble:nth-child(2) { animation-delay: .15s; background: #f3eeff; }
.bubble:nth-child(3) { animation-delay: .3s; background: #eaf6ff; }
.bubble b { color: var(--pink-ink); }
.services-title { display: block; font-weight: 700; margin-bottom: 6px; }
.advisor-services { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px; }
.advisor-services li {
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: #1d5f8a;
  font-size: 13px;
  font-weight: 700;
}
.advisor-services li::before { content: "✓ "; color: #2ea36e; }
.wechat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 2px solid #fbdcec;
}
.wechat-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; }
.wechat-text { flex: 1; min-width: 0; line-height: 1.3; }
.wechat-text span { display: block; font-size: 12px; color: var(--muted); }
.wechat-text strong { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; -webkit-user-select: all; }
.copy-button {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--press);
  transition: transform .15s, box-shadow .15s;
}
.copy-button:hover:not(:disabled) { animation: bounce .6s ease; }
.copy-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }
.copy-button:disabled { background: #ece6f3; color: #5d4f75; box-shadow: 0 4px 0 #d9cfe6; cursor: not-allowed; }
.copy-status { min-height: 22px; padding: 4px 12px 0; font-size: 13px; font-weight: 700; color: #1b7a50; }
.advisor-hours { padding: 0 12px; font-size: 13px; color: var(--muted); }

/* App window with the screenshot */
.app-window {
  position: relative;
  margin: 0;
  padding: 0 10px 10px;
  background: #fff;
  border: 1.5px solid #fff;
  border-radius: 30px;
  box-shadow: 0 30px 60px -24px rgba(124, 58, 237, .45), 0 0 0 8px rgba(255, 255, 255, .45);
}
.window-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; }
.window-dots { display: inline-flex; gap: 7px; }
.window-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff8cc0; }
.window-dots i:nth-child(2) { background: #ffd66e; }
.window-dots i:nth-child(3) { background: #9ad7ff; }
.window-title { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.window-heart { color: #ff6fae; font-size: 16px; }
.app-window picture img { width: 100%; height: auto; border-radius: 20px; }
.sticker {
  position: absolute;
  padding: 7px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(150, 70, 190, .25);
  transform: rotate(var(--tilt));
  animation: floaty 4.5s ease-in-out infinite;
}
.sticker-voice { --tilt: -8deg; left: -18px; bottom: 44px; background: #ffe0ef; color: var(--pink-ink); }
.sticker-hi { --tilt: 9deg; right: -18px; top: 62px; background: #e2f3ff; color: #1d5f8a; animation-delay: 1.2s; }

/* ---------- Sections ---------- */
.section { padding-top: 64px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: #fff;
  color: var(--purple-ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 0 #dccfff;
  transform: rotate(-6deg);
}
.section-head h2 { font-size: 28px; line-height: 1.3; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 14px; }

/* ---------- Download ---------- */
.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.download-card { padding: 30px 30px 0; overflow: visible; }
.product-top { display: flex; align-items: center; gap: 18px; }
.product-icon {
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffd6e8, #e6dcff);
  transform: rotate(-5deg);
}
.product-icon img { width: 64px; height: 64px; border-radius: 18px; }
.product-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.product-title h3 { font-size: 26px; font-weight: 900; line-height: 1.3; }
.badge {
  padding: 3px 12px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(4deg);
  box-shadow: 0 3px 0 var(--press);
}
.product-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.product-description { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 620px; }
.metadata { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.metadata li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 14px;
  background: #f7f2ff;
  font-size: 13px;
}
.metadata li:nth-child(2) { background: #fff0f7; }
.metadata li:nth-child(3) { background: #eef8ff; }
.metadata span { color: var(--muted); }
.metadata b { font-weight: 800; }

.download-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.primary { background: var(--grad); color: #fff; box-shadow: 0 5px 0 var(--press), 0 12px 24px -10px rgba(214, 48, 127, .55); }
.primary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--press); }
.secondary { background: #fff; color: var(--purple-ink); border: 2px solid #dccfff; box-shadow: 0 5px 0 #dccfff; min-width: 150px; }
.secondary:hover { background: #faf7ff; }
.secondary:active { transform: translateY(4px); box-shadow: 0 1px 0 #dccfff; }
.button:hover:not(:active) { animation: bounce .6s ease; }

.main-download-group { position: relative; z-index: 5; display: flex; flex: 1 1 300px; min-width: 0; }
.main-download-group .main-download-button { flex: 1; min-width: 0; justify-content: flex-start; border-radius: 999px 0 0 999px; padding-right: 18px; }
.main-download-button > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 15px;
}
#main-download-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-download-group .download-menu-toggle {
  flex: 0 0 56px;
  padding: 0 4px 0 0;
  border-radius: 0 999px 999px 0;
  border-left: 2px solid rgba(255, 255, 255, .35);
  background: linear-gradient(120deg, #8d38e0, #7c3aed);
  font-size: 18px;
}
.download-menu-toggle span { display: inline-block; transform: translateY(-4px); transition: transform .2s; }
.download-menu-toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(180deg); }
.main-download-group .button:hover:not(:active) { animation: none; }
.main-download-group:hover { animation: bounce .6s ease; }
.version-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 2px solid #f3e4fb;
  border-radius: 22px;
  box-shadow: 0 20px 40px -12px rgba(124, 58, 237, .35);
  animation: wiggle-in .18s ease both;
}
.version-menu::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 2px solid #f3e4fb;
  border-top: 2px solid #f3e4fb;
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.version-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
}
.version-menu button::before { content: "♪"; color: var(--pink-ink); }
.version-menu button:hover, .version-menu button:focus-visible { background: #fdeef6; color: var(--pink-ink); outline-offset: -3px; }
.version-menu-empty { display: block; padding: 11px 16px; color: var(--muted); font-size: 14px; }

.runtime-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 28px -30px 0;
  padding: 16px 30px;
  background: #fbf6ff;
  border-top: 2px dashed var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.runtime-note > span[data-bind] { flex: 1 1 280px; }
.note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffe7a3;
  color: #6b4b00;
  font-weight: 900;
  font-size: 13px;
}
.runtime-download {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 2px solid #f6c6de;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-ink);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 3px 0 #f6c6de;
  transition: transform .15s, box-shadow .15s;
}
.runtime-download:hover { animation: bounce .6s ease; }
.runtime-download:active { transform: translateY(3px); box-shadow: 0 0 0 #f6c6de; }

.download-side { display: grid; gap: 20px; }
.notice-card { position: relative; padding: 28px 24px 24px; }
.notice-sticker {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 3px 12px;
  border-radius: 10px;
  background: #dff2ff;
  color: #1d5f8a;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 #bfe1f7;
  transform: rotate(-5deg);
}
.notice-card h3 { font-size: 18px; font-weight: 900; }
.notice-card ul { display: grid; gap: 10px; margin-top: 14px; }
.notice-card li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.notice-card li::before { content: "♡"; position: absolute; left: 0; top: 0; color: #e0468f; font-weight: 900; }
.preview-note {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border: 2px dashed #cdb8ff;
  border-radius: 24px;
  background: rgba(255, 255, 255, .7);
}
.preview-icon { flex: 0 0 auto; font-size: 20px; line-height: 1.3; color: var(--purple-ink); }
.preview-note strong { font-size: 14px; }
.preview-note p { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tool-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; transition: transform .25s; }
.tool-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 800;
}
.tool-type {
  position: absolute;
  top: 24px;
  right: 22px;
  padding: 3px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(5deg);
}
.tool-pink .tool-icon, .tool-pink .tool-type { background: #ffe3f0; color: var(--pink-ink); }
.tool-lilac .tool-icon, .tool-lilac .tool-type { background: #efe7ff; color: var(--purple-ink); }
.tool-sky .tool-icon, .tool-sky .tool-type { background: #e0f2ff; color: #1d5f8a; }
.tool-card h3 { margin-top: 18px; font-size: 18px; font-weight: 900; }
.tool-card p { margin-top: 6px; color: var(--muted); font-size: 14px; flex: 1; }
.tool-link {
  margin-top: 18px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--press);
  transition: transform .15s, box-shadow .15s;
}
.tool-link:hover { animation: bounce .6s ease; }
.tool-link:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }

/* ---------- Guide ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 26px 26px 28px 118px; min-height: 150px; }
.step-number {
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffd6e8, #e6dcff);
  color: var(--purple-ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 3px 3px 0 #fff;
  transform: rotate(-6deg);
  box-shadow: 0 5px 0 #e3d3fb;
}
.step:nth-child(2) .step-number { background: linear-gradient(145deg, #e6dcff, #d8f0ff); transform: rotate(5deg); }
.step:nth-child(3) .step-number { background: linear-gradient(145deg, #d8f0ff, #ffd6e8); transform: rotate(-3deg); }
.step h3 { font-size: 18px; font-weight: 900; }
.step p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.step:not(:last-child)::after {
  content: "♡";
  position: absolute;
  right: -18px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: #fff;
  color: #e0468f;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(150, 70, 190, .2);
}

/* ---------- FAQ (chat style) ---------- */
.faq-section { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-intro { padding-top: 20px; }
.faq-intro h2 { margin-top: 18px; font-size: 30px; line-height: 1.3; font-weight: 900; }
.faq-intro p { margin-top: 8px; color: var(--muted); }
.faq-chat { overflow: hidden; }
.faq-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: linear-gradient(90deg, #fff0f7, #f3eeff);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.faq-list { display: grid; gap: 14px; padding: 22px; }
details { display: grid; gap: 10px; }
summary {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  margin-left: auto;
  max-width: 88%;
  width: fit-content;
  padding: 12px 16px 12px 20px;
  border-radius: 22px 22px 6px 22px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 4px 0 var(--press);
  transition: transform .15s, box-shadow .15s;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary:hover { animation: bounce .6s ease; }
summary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }
summary:focus-visible { border-radius: 22px 22px 6px 22px; outline-offset: 4px; }
.toggle {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.toggle::before, .toggle::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s;
}
.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { transform: rotate(0); }
.answer { display: flex; align-items: flex-end; gap: 10px; max-width: 92%; animation: wiggle-in .3s ease both; }
.answer img { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px #ffc4df; }
.answer p {
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  background: #f5f0ff;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  max-width: 1200px;
  margin: 72px auto 28px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: 0 10px 30px -16px rgba(150, 70, 190, .35);
  font-size: 13px;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 15px; border-radius: 999px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 9px; }
.footer-brand span { color: var(--muted); font-weight: 500; font-size: 13px; }
.footer-note { margin-left: auto; }
.back-top { padding: 6px 14px; border-radius: 999px; background: #fdeef6; color: var(--pink-ink); font-weight: 800; }
.back-top:hover { background: #fbdcec; }

/* ---------- Dialog ---------- */
dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 36px 30px 28px;
  border: 0;
  border-radius: 32px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(124, 58, 237, .5);
}
dialog[open] { animation: pop-in .25s ease both; }
dialog::backdrop { background: rgba(80, 40, 120, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f7f2ff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.close-dialog:hover { background: #fdeef6; color: var(--pink-ink); }
.close-dialog:focus-visible { border-radius: 50%; }
.dialog-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffd6e8, #e6dcff);
  color: var(--pink-ink);
  font-size: 28px;
  transform: rotate(-6deg);
}
dialog h2 { font-size: 20px; font-weight: 900; }
dialog p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
dialog .button { width: 100%; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-stage { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
  .app-window { order: -1; }
  .download-layout { grid-template-columns: 1fr; }
  .download-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { right: auto; left: 60px; top: auto; bottom: -24px; margin-top: 0; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; }
  .faq-intro { padding-top: 0; }
}

@media (max-width: 860px) {
  .header { flex-wrap: wrap; gap: 10px; border-radius: 28px; padding: 10px 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: center; border-top: 2px dashed var(--line); padding-top: 8px; }
  .header-contact { margin-left: auto; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .header { margin: 10px 12px 0; }
  .brand { font-size: 17px; gap: 10px; }
  .brand-logo { width: 38px; height: 38px; border-radius: 12px; }
  .brand-sub { font-size: 9px; letter-spacing: 2px; }
  .header-contact { padding: 8px 14px; font-size: 13px; }
  .nav a { padding: 6px 12px; font-size: 13px; }
  main { padding: 0 14px; }
  .hero { padding-top: 34px; }
  .wide-break { display: none; }
  .hero-copy > p { font-size: 15px; }
  .hero-tags li { font-size: 13px; padding: 6px 12px; }
  .hero-stage { margin-top: 30px; gap: 28px; }
  .app-window { padding: 0 6px 6px; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(124, 58, 237, .45), 0 0 0 5px rgba(255, 255, 255, .45); }
  .window-bar { height: 34px; }
  .window-dots i { width: 9px; height: 9px; }
  .app-window picture img { border-radius: 14px; }
  .sticker { font-size: 12px; padding: 4px 10px; border-width: 2px; }
  .sticker-voice { left: -6px; bottom: -14px; }
  .sticker-hi { right: -6px; top: 40px; }
  .chat-card { padding: 18px 16px; border-radius: 26px; }
  .avatar img { width: 56px; height: 56px; }
  .chat-id h2 { font-size: 18px; }
  .bubble { max-width: 100%; font-size: 14px; }
  .wechat-text strong { font-size: 15px; }
  .section { padding-top: 48px; }
  .section-head { gap: 12px; margin-bottom: 18px; }
  .section-num { width: 46px; height: 46px; border-radius: 16px; font-size: 18px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 13px; }
  .download-card { padding: 22px 18px 0; border-radius: 24px; }
  .product-top { gap: 14px; }
  .product-icon { padding: 5px; border-radius: 20px; }
  .product-icon img { width: 52px; height: 52px; border-radius: 15px; }
  .product-title h3 { font-size: 21px; }
  .product-description { font-size: 14px; }
  .metadata { gap: 8px; }
  .metadata li { padding: 5px 11px; font-size: 12.5px; }
  .download-actions { flex-direction: column; gap: 16px; }
  .main-download-group { flex: 0 0 auto; }
  .secondary { width: 100%; }
  .runtime-note { margin: 24px -18px 0; padding: 14px 18px 16px; border-radius: 0 0 24px 24px; font-size: 13px; }
  .runtime-note > span[data-bind] { flex-basis: calc(100% - 40px); }
  .runtime-download { margin-left: 36px; }
  .download-side { grid-template-columns: 1fr; }
  .notice-card { padding: 26px 20px 20px; border-radius: 24px; }
  .tool-card { padding: 22px; border-radius: 24px; }
  .step { padding: 22px 20px 22px 104px; min-height: 0; border-radius: 24px; }
  .step-number { left: 18px; top: 50%; margin-top: -34px; width: 68px; height: 68px; font-size: 40px; border-radius: 24px; }
  .faq-intro h2 { font-size: 24px; }
  .faq-list { padding: 16px 14px; }
  summary { max-width: 94%; font-size: 14px; padding: 11px 12px 11px 16px; }
  .answer { max-width: 100%; }
  .answer img { width: 30px; height: 30px; }
  .answer p { font-size: 14px; }
  .footer { margin: 56px 14px 20px; border-radius: 26px; flex-direction: column; text-align: center; gap: 10px; }
  .footer-note { margin-left: 0; }
  .hero { padding-top: 26px; }
  h1 { margin-top: 16px; }
  .hero-actions { margin-top: 22px; gap: 12px; }
  .hero-download { width: 100%; min-height: 58px; font-size: 18px; }
  .hero-meta { font-size: 12px; }
  .hero-meta-extra { display: none; }
  body { padding-bottom: 92px; }
  .mobile-download-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border: 1.5px solid #fff;
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px -12px rgba(124, 58, 237, .45);
  }
  .mobile-download-bar img { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
  .mobile-download-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .mobile-download-text strong { font-size: 14px; font-weight: 900; white-space: nowrap; }
  .mobile-download-text > span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-download-bar .button { margin-left: auto; min-height: 46px; padding: 0 18px; font-size: 15px; flex: 0 0 auto; gap: 6px; }
}

@media (max-width: 380px) {
  .header-contact { font-size: 12px; padding: 8px 12px; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 昼夜切换 toggle (daynight template) ---------- */
.skin-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 #f3c7e0;
  transition: transform .15s, box-shadow .15s;
}
.skin-toggle:hover { transform: translateY(-1px); }
.skin-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 #f3c7e0; }
.skin-toggle:focus-visible { outline: 3px solid var(--purple-ink); outline-offset: 4px; border-radius: 999px; }
.skin-toggle-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: #8a7aa6;
}
.skin-toggle-day { background: linear-gradient(135deg, #ffb86b, #ff7eb3); color: #fff; }
/* Narrow screens: the nav already wraps to a second row; the toggle joins that row. */
@media (max-width: 860px) {
  .header .nav { flex: 1 1 0; width: auto; }
  .header .skin-toggle { order: 4; align-self: flex-end; }
}
/* Smallest phones: one icon showing the skin a tap switches to. */
@media (max-width: 380px) {
  .skin-toggle { padding: 2px; }
  .skin-toggle-day { display: none; }
  .skin-toggle-night { color: var(--purple-ink); }
  .header .nav { gap: 2px; }
  .header .nav a { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
}
