:root {
  color-scheme: dark;
  --page: #1e1e2f;
  --pink: #ff68b0;
  --copy: #c0bfca;
  --muted: #a5a3b4;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a, input { touch-action: manipulation; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button:focus-visible, a:focus-visible { outline: 2px solid #80c9ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.page { width: min(780px, calc(100% - 32px)); margin: 40px auto 0; }
.intro, .ad-frame, .step-card {
  background: linear-gradient(145deg, #2d2d3f, #1e1e2f);
  border: 1px solid #44405c;
  border-radius: 16px;
  box-shadow: 0 0 16px #8262ff24;
}
.intro { padding: 20px; margin-bottom: 16px; }
.intro h1 { margin: 0 0 10px; text-align: center; font-size: 36px; line-height: 1.3; }
.accent, .intro h1 span { color: var(--pink); font-weight: 700; }
.intro p { margin: 8px 0 0; color: var(--copy); line-height: 1.65; }
.ad-frame { padding: 20px; }
.carousel { position: relative; overflow: hidden; border-radius: 12px; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform 500ms ease; }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel-control {
  position: absolute; top: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #0004; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, background .2s;
}
.carousel:hover .carousel-control, .carousel:focus-within .carousel-control { opacity: 1; }
.carousel-control:hover { background: #0008; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.tool-icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.carousel-dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; }
.carousel-dot { border: 0; background: none; width: 24px; height: 28px; padding: 10px 6px; display: grid; place-items: center; }
.carousel-dot::before { content: ""; width: 8px; height: 8px; border-radius: 10px; background: #ffffff99; transition: width .2s; }
.carousel-dot[aria-current="true"]::before { width: 12px; background: #fff; }
.participation h2 { text-align: center; margin: 18px 0 16px; font-size: 30px; line-height: 1.4; }
.steps { padding: 0; margin: 0; list-style: none; display: grid; gap: 16px; }
.step-card { padding: 20px; min-width: 0; }
.step-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; line-height: 1.55; }
.step-number { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; background: var(--pink); box-shadow: 0 3px 6px #ff68b033; border-radius: 50%; font-size: 14px; font-weight: 800; }
.step-card p { margin: 0; color: var(--copy); font-size: 14px; line-height: 1.6; overflow-wrap: break-word; }
.save-poster {
  width: 100%; min-height: 60px; margin: 12px 0; display: flex; justify-content: center; align-items: center; gap: 8px;
  background: #e66791; color: #fff; border: 0; border-radius: 12px; text-decoration: none;
  font-size: 18px; font-weight: 700; transition: background .2s, box-shadow .2s;
}
.save-poster:hover { background: #ed739f; box-shadow: 0 0 22px #ff68b055; }
.poster-preview { margin: 0; }
.poster-preview > a { position: relative; display: block; border-radius: 12px; overflow: hidden; container-type: inline-size; }
.poster-preview img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; -webkit-touch-callout: default; }
.poster-clock {
  position: absolute; z-index: 1; top: 8.5%; left: 0; right: 0; display: flex; flex-direction: column;
  align-items: center; color: #fff; font-weight: 700; line-height: 1.08; pointer-events: none;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 7px #0005;
}
#poster-date { font-size: clamp(28px, 8.1cqw, 70px); }
#poster-time { margin-top: 1.2%; font-size: clamp(30px, 8.5cqw, 74px); }
.poster-preview figcaption { color: #8e8b9e; font-size: 12px; text-align: center; margin-top: 12px; }
.platforms { display: flex; justify-content: center; gap: 16px; margin: 12px 0; }
.platform-link {
  flex: 0 1 80px; min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: transparent; text-decoration: none; font-size: 12px; color: #e0deea; line-height: 1.4;
}
.platform-link img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; transition: transform .2s; }
.platform-link:hover img { transform: translateY(-2px); }
.step-card .platform-note { font-size: 12px; color: #b0aebe; }
.step-card .demo-note { font-size: 12px; color: #b0aebe; margin-top: 8px; }
.site-footer { padding: 104px 24px 44px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; }
.footer-brand img { width: 32px; height: 32px; }
.site-footer p { margin: 22px 0 14px; color: #9491a4; font-size: 14px; }
.site-footer small { color: #858194; font-size: 12px; }
.bot-toggle {
  position: fixed; z-index: 20; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border: 0; border-radius: 50%; background: #ff68b0;
  box-shadow: 0 6px 18px #ff68b055; display: grid; place-items: center;
}
.bot-toggle .tool-icon { width: 30px; height: 30px; }
.bot-panel {
  position: fixed; z-index: 21; right: max(20px, env(safe-area-inset-right)); bottom: max(92px, calc(env(safe-area-inset-bottom) + 78px));
  width: min(416px, calc(100% - 32px)); height: min(560px, calc(100dvh - 118px));
  background: #282839; border: 1px solid #57536e; border-radius: 16px; box-shadow: 0 20px 50px #0009;
  display: flex; flex-direction: column; overflow: hidden;
}
.bot-head { display: flex; align-items: center; gap: 10px; padding: 12px; background: linear-gradient(110deg, #328edf, #8860da, #db589f); }
.bot-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #ffffff26; }
.bot-heading { flex: 1; min-width: 0; }
.bot-heading h2 { margin: 0; font-size: 14px; }
.bot-heading p { margin: 2px 0 0; font-size: 12px; }
.online-dot { display: inline-block; width: 7px; height: 7px; background: #5edf9f; border-radius: 50%; margin-right: 5px; }
.close-bot { border: 0; background: none; width: 36px; height: 36px; display: grid; place-items: center; }
.messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.message { max-width: 92%; background: #3a394e; padding: 10px 12px; border-radius: 12px; color: #f0edf7; font-size: 13px; line-height: 1.6; margin: 0 0 12px; overflow-wrap: anywhere; }
.message.user { margin-left: auto; background: #624177; max-width: 65%; }
.message img { width: 100%; height: 150px; object-fit: contain; border-radius: 6px; margin-bottom: 6px; }
.message.error { border-left: 3px solid #fb87ac; }
.message.typing { display: flex; align-items: center; gap: 5px; width: max-content; }
.typing span { width: 5px; height: 5px; background: #f0edf7; border-radius: 50%; animation: audit-typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes audit-typing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.bot-bottom { padding: 12px; border-top: 1px solid #ffffff1a; }
.progress-label { display: flex; justify-content: space-between; color: #bdb7cf; font-size: 12px; margin-bottom: 8px; }
progress { width: 100%; height: 5px; display: block; margin-bottom: 12px; border: 0; border-radius: 5px; overflow: hidden; }
progress::-webkit-progress-bar { background: #434052; }
progress::-webkit-progress-value { background: #fc74b6; }
.upload-button { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: #b660b3; color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.download-links { display: flex; gap: 8px; margin: 6px 0 12px; }
.download-links a { flex: 1; min-height: 40px; padding: 10px 6px; border-radius: 8px; text-decoration: none; text-align: center; background: #b660b3; font-size: 13px; font-weight: 700; }
.download-links a:last-child { background: #408abd; }
.toast { position: fixed; z-index: 30; bottom: 96px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); border-radius: 10px; background: #11111fee; padding: 12px 18px; font-size: 13px; box-shadow: 0 6px 22px #0006; text-align: center; }
@media (max-width: 1023px) and (min-width: 768px) { .page { max-width: 600px; } }
@media (max-width: 767px) {
  .page { max-width: 460px; margin-top: 24px; }
  .intro h1 { font-size: 28px; }
  .participation h2 { font-size: 24px; }
  .carousel-control { opacity: .8; width: 28px; height: 28px; top: calc(50% - 14px); }
  .carousel-prev { left: 8px; } .carousel-next { right: 8px; }
  .carousel-control .tool-icon { width: 17px; height: 17px; }
  .carousel-dots { bottom: 2px; }
  .site-footer { padding-top: 96px; padding-bottom: 88px; }
  .site-footer p { font-size: 12px; }
  .footer-brand { font-size: 18px; }
  .bot-panel { right: 16px; }
}
@media (max-width: 359px) {
  .intro, .ad-frame, .step-card { padding: 16px; }
  .intro h1 { font-size: 25px; }
  .step-heading { font-size: 16px; }
  .platforms { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
