:root {
  --blue: #1798fc;
  --blue-text: #1798fc;
  --ink: #333;
  --muted: #666;
  --border: rgba(23, 152, 252, .1);
  --red: #ff0000;
  --green: #36ab60;
  --chat-pink: #ff375f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #f9f9f9;
  color: rgba(0, 0, 0, .85);
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: default; }
:is(button, input, [tabindex]):focus-visible { outline: 3px solid #075fba; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  border: 1px solid rgba(23, 152, 252, .2);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(23, 152, 252, .1), rgba(255, 255, 255, .2), rgba(23, 152, 252, .15), rgba(0, 86, 179, .1));
  background-size: 300% 100%;
  box-shadow: 0 4px 20px rgba(23, 152, 252, .1), inset 0 0 20px rgba(23, 152, 252, .05);
  backdrop-filter: blur(10px);
  animation: title-flow 6s ease infinite;
}
.page-title span {
  position: relative;
  margin: 0 auto;
  font-size: 19px;
  background: linear-gradient(45deg, #1798fc, #0056b3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.page-title::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 50%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-25deg);
  animation: title-shine 6s ease-in-out infinite;
}
.guide {
  margin: 15px auto 0;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(23, 152, 252, .02), rgba(23, 152, 252, .05));
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 10px rgba(23, 152, 252, .05);
}
.guide-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.guide-header h2 { font-size: 16px; font-weight: 600; color: var(--blue); }
.guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1798fc, #0056b3);
  box-shadow: 0 2px 8px rgba(23, 152, 252, .15);
}
.guide-icon img { width: 16px; height: 16px; }
.intro { font-size: 14px; color: #333; }
.intro-lead { font-weight: 700; }
.intro-description { color: var(--red); }
.intro-benefit { color: var(--blue); font-size: 16px; font-weight: 600; }
.purchase-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 5px 0 10px;
  color: #ff5722;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.purchase-note svg { width: 12px; height: 12px; color: #ffb800; fill: currentColor; }
.purchase-action { margin: 10px 0; text-align: center; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 15px;
  color: #fff;
  background: #1e9fff;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  line-height: 38px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  transition: opacity .2s;
}
.primary-button:hover { opacity: .8; }
.primary-button svg { width: 14px; height: 14px; }
#purchase-button { margin: 0 10px 10px 0; }
.carousel { margin: 20px 0; text-align: center; }
.carousel-shell {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}
.carousel-stage { position: relative; touch-action: pan-y; background: #e1e8ee; }
.slide-content { display: block; width: 100%; background: transparent; }
.slide-content img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1290 / 968;
  max-height: 360px;
  object-fit: fill;
}
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; background: transparent; color: inherit; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(0, 0, 0, .4);
  border-radius: 50%;
  transition: background-color .3s, transform .3s;
}
.carousel-arrow svg { width: 18px; height: 18px; stroke-width: 3; }
.carousel-arrow:hover { background: rgba(0, 0, 0, .7); transform: translateY(-50%) scale(1.1); }
.previous { left: 15px; }
.next { right: 15px; }
.carousel-pause {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 30px;
  height: 30px;
  color: white;
  background: rgba(0, 0, 0, .4);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .2s;
}
.carousel-pause svg { width: 14px; height: 14px; }
.carousel-shell:hover .carousel-pause, .carousel-shell:focus-within .carousel-pause { opacity: 1; }
.carousel-dots { margin-top: 10px; min-height: 22.4px; line-height: 22.4px; text-align: center; }
.carousel-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 2px;
  color: #fff;
  background: #bbb;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  vertical-align: baseline;
  transition: background-color .6s;
}
.carousel-dot + .carousel-dot { margin-left: 6.05px; }
.carousel-dot[aria-current="true"], .carousel-dot:hover { background: var(--blue); }
.steps { color: var(--red); }
.step {
  padding: 15px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .02);
}
.first-step { margin: 20px 0; line-height: 1.8; box-shadow: 0 5px 20px rgba(0, 0, 0, .05); }
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.first-step .step-header { margin-bottom: 15px; }
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 500;
}
.first-step .step-number { display: block; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--red); font-weight: 400; }
.step h3 { font-size: 16px; font-weight: 400; line-height: 1.5; color: #333; }
.step-body { margin-top: 10px; padding: 12px; border-radius: 8px; background: #f8f9fa; }
.step-body p { font-size: 14px; }
.first-step .step-body > p:first-child { line-height: 1.6; color: #666; margin-bottom: 5px; }
.keywords { margin-top: 10px; line-height: 2; }
.copy-button {
  display: inline;
  padding: 4px 12px;
  border-radius: 15px;
  background: rgba(23, 152, 252, .1);
  color: #4b6cb7;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  text-align: inherit;
  overflow-wrap: anywhere;
  transition: transform .2s;
}
.keywords .copy-button + .copy-button { margin-left: 4px; }
.copy-button:hover { transform: scale(1.03); }
.first-step .step-body .alternative { margin-top: 10px; color: #e03e2d; font-size: 14px; font-weight: 700; }
.comments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; text-align: center; }
.comments .copy-button { max-width: 100%; line-height: 1.6; }
.example-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 34.4px 12px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.example-label svg { width: 14px; height: 14px; }
.example { display: block; width: 100%; margin-top: 15px; border-radius: 8px; overflow: hidden; background: transparent; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.example img { display: block; width: 100%; height: auto; }
.last-step { padding-bottom: 25px; }
.final-content { margin-top: 10px; padding: 12px; background: #fff9f9; border: 1px solid #aedebf; border-radius: 8px; }
.final-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--green); }
.final-header h3 { color: var(--green); font-size: 14px; font-weight: 520; line-height: 1.6; }
.final-header svg { width: 24px; height: 24px; fill: var(--green); stroke: #fff; }
.final-content p { color: #666; font-size: 14px; font-weight: 700; }
.inline-button { display: inline; background: transparent; color: var(--blue); font-weight: 700; }
.inline-button svg { width: 23px; height: 23px; vertical-align: -3px; }
.final-notice { margin: 22.4px 0; }
.final-content .warning { color: var(--blue); }
.completed-example { margin-top: 22.4px; }
.chat-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 20px;
  bottom: 24px;
  height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--chat-pink);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(255, 55, 95, .45);
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  transition: transform .2s;
}
.chat-launcher:active { transform: scale(.9); }
.chat-panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 16px;
  bottom: 86px;
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 310px;
  max-height: min(480px, calc(100dvh - 102px));
  overflow: hidden;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 20;
}
.chat-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 14px 16px; height: 52px; color: white; background: var(--chat-pink); }
.chat-header h2 { font-size: 15px; font-weight: 600; }
.chat-header .icon-button { width: 24px; height: 24px; color: rgba(255, 255, 255, .8); }
.chat-header .icon-button svg { width: 22px; height: 22px; }
.chat-messages { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; gap: 8px; padding: 12px; background: white; overscroll-behavior: contain; }
.message { flex-shrink: 0; max-width: 78%; margin: 0; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.bot-message { align-self: flex-start; background: #f2f2f7; color: #1c1c1e; border-bottom-left-radius: 4px; }
.user-message { align-self: flex-end; background: var(--chat-pink); color: white; border-bottom-right-radius: 4px; }
.message img { display: block; max-width: 180px; width: 100%; max-height: 220px; object-fit: contain; margin-top: 2px; border-radius: 10px; }
.message a { color: #0874c7; text-decoration: underline; overflow-wrap: anywhere; }
.message.user-message a { color: white; }
.message strong { display: block; }
.message p { margin: 5px 0; }
.chat-feedback { padding: 5px 12px; color: #a33035; font-size: 11px; background: #fff5f5; }
.load-status { max-width: 600px; margin: 50px auto; padding: 20px; color: #666; text-align: center; }
button:disabled { opacity: .55; }
.chat-form { padding: 10px 12px; border-top: 1px solid rgba(60, 60, 67, .12); flex-shrink: 0; }
.chat-compose { display: flex; align-items: center; gap: 8px; }
#attach { width: 34px; height: 34px; border-radius: 50%; background: #f2f2f7; color: #8e8e93; }
#attach svg { width: 17px; height: 17px; }
.chat-compose input { min-width: 0; flex: 1; padding: 9px 13px; border: 1.5px solid rgba(60, 60, 67, .2); border-radius: 20px; font-size: 13px; line-height: normal; background: #f2f2f7; }
.chat-compose input:focus { border-color: var(--chat-pink); background: #fff; }
.chat-compose .primary-button { flex-shrink: 0; height: auto; padding: 9px 16px; border: 0; background: var(--chat-pink); border-radius: 20px; font-size: 13px; font-weight: 500; line-height: normal; box-shadow: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: max-content;
  min-width: 300px;
  max-width: 90%;
  padding: 16px 24px;
  color: white;
  background: rgba(40, 167, 69, .95);
  border-left: 4px solid #28a745;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  z-index: 50;
  animation: toast-enter .5s cubic-bezier(.68, -.55, .27, 1.55);
}
.toast > div { min-width: 0; flex: 1; }
.toast strong { display: block; margin-bottom: 4px; font-weight: 600; }
.toast p { font-size: 14px; opacity: .9; overflow-wrap: anywhere; }
.toast .icon-button { width: 20px; height: 20px; opacity: .7; }
.toast.error { background: rgba(220, 53, 69, .95); border-left-color: #dc3545; }
.purchase-dialog { margin: auto; width: 360px; max-width: calc(100% - 32px); padding: 22px; color: #333; border: 1px solid #dce6ef; border-radius: 8px; box-shadow: 0 12px 40px #0003; }
.purchase-dialog::backdrop { background: #0005; }
.purchase-dialog header { display: flex; align-items: center; justify-content: space-between; }
.purchase-dialog h2 { font-size: 18px; }
.purchase-dialog p { margin: 12px 0 20px; color: #62676e; font-size: 14px; }
.purchase-dialog > .primary-button { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes title-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes title-shine { 0%, 100% { left: -100%; } 20% { left: 200%; } }
@keyframes toast-enter { from { opacity: 0; bottom: -100px; } to { opacity: 1; bottom: 30px; } }
@media (max-width: 576px) {
  .page-title { margin: 15px 0; padding: 8px 15px; }
  .page-title span { font-size: 17px; }
  .carousel-arrow { width: 30px; height: 30px; }
  .carousel-arrow svg { width: 14px; height: 14px; }
  .previous { left: 5px; }
  .next { right: 5px; }
  .carousel-dot { width: 16px; height: 16px; font-size: 10px; line-height: 16px; }
  .step { padding: 12px 10px; }
  .last-step { padding-bottom: 22px; }
  .step-number { width: 20px; height: 20px; font-size: 12px; }
  .first-step .step-number { font-size: 14px; }
  .step h3 { font-size: 15px; }
  .step-body p { font-size: 13px; }
  .first-step .step-body .alternative { font-size: 14px; }
  .copy-button { font-size: 12px; padding: 3px 10px; }
  .example-label { padding-top: 32.8px; font-size: 13px; }
  .final-header h3 { font-size: 14px; }
  .final-content p { font-size: 13px; }
}
@media (max-width: 480px) {
  .toast { min-width: 0; width: 300px; max-width: 85%; }
}
@media (max-width: 360px) {
  .page { padding: 10px 8px; }
  .page-title { padding: 6px 10px; }
  .page-title span { font-size: 15px; }
  .intro, .step-body p, .final-content p { font-size: 12px; }
  .first-step .step-number { font-size: 12px; }
  .carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 4px; }
  .carousel-dot { width: 14px; height: 14px; font-size: 8px; line-height: 14px; margin: 0; }
  .carousel-dot + .carousel-dot { margin-left: 0; }
  .example-label { padding-top: 31.2px; font-size: 12px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .page-title { margin: 10px 0; padding: 6px 15px; }
  .carousel-shell { max-height: 180px; }
  .step { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
