:root {
  --cream: #fbefe3;
  --cream-2: #f6e5d6;
  --paper: #fffaf3;
  --plum: #3d122f;
  --plum-deep: #220a1b;
  --ink: #241019;
  --muted: #7d5c68;
  --apricot: #ffb27a;
  --rose: #ff7f9f;
  --butter: #ffe6a3;
  --line: rgba(61, 18, 47, 0.14);
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.02em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.script {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
}

/* ---------- progress ---------- */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 60;
  background: rgba(61, 18, 47, 0.08);
}

.progress-bar {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--rose), var(--apricot));
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: rgba(251, 239, 227, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: #5c3a49;
}

.nav a {
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--rose);
}

.header-cta {
  flex: none;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--plum);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  background: #571b44;
}

/* ---------- pages ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 108px 0 72px;
  scroll-snap-align: start;
  overflow: hidden;
}

.page[id] {
  scroll-margin-top: 66px;
}

.page-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.kicker {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #b03a63;
  text-transform: uppercase;
}

.kicker-light {
  color: var(--apricot);
}

.page h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.1rem);
  font-weight: 800;
}

.page-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.page-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.head-note {
  max-width: 300px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(61, 18, 47, 0.42);
}

/* ---------- hero ---------- */
.page-hero {
  background:
    radial-gradient(760px 460px at 8% 12%, rgba(255, 178, 122, 0.4), transparent 62%),
    radial-gradient(680px 420px at 92% 78%, rgba(255, 127, 159, 0.32), transparent 64%),
    linear-gradient(160deg, #fdf2e7, #f8e4d4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid rgba(61, 18, 47, 0.2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6f2b4c;
}

.hero-copy h1 {
  margin-top: 26px;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-copy h1 .script {
  color: #b03a63;
}

.hero-lead {
  max-width: 460px;
  margin-top: 24px;
  color: #6f4a58;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--plum);
  color: var(--cream);
  box-shadow: 0 16px 34px rgba(61, 18, 47, 0.24);
}

.btn-outline {
  border: 1px solid rgba(61, 18, 47, 0.35);
  color: var(--plum);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(61, 18, 47, 0.06);
}

.hero-foot {
  margin-top: 22px;
  color: #8a6270;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.device {
  position: relative;
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 46px 18px 18px;
  border-radius: 44px;
  background: linear-gradient(170deg, #401631, #1d0817 70%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(46, 12, 32, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.device-top p {
  font-size: 14px;
  font-weight: 700;
  color: #ffe9dc;
}

.device-top small {
  margin-left: auto;
  font-size: 11px;
  color: #c28ba0;
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ef2bc;
  box-shadow: 0 0 0 3px rgba(110, 242, 188, 0.16);
}

.device-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 4px 26px;
  min-height: 330px;
}

.msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.msg-left {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #f6e8e0;
  border-bottom-left-radius: 5px;
}

.msg-right {
  align-self: flex-end;
  background: linear-gradient(140deg, #ffb27a, #ff8f96);
  color: #3a1226;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}

.device-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: #b4869a;
  font-size: 13px;
}

.device-mic {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #c98aa2;
}

/* ---------- stats ---------- */
.page-stats {
  background: var(--butter);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(61, 18, 47, 0.22);
}

.stat {
  padding: 40px 32px 10px;
  border-left: 1px solid rgba(61, 18, 47, 0.16);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.2rem, 6.2vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--plum);
}

.stat h3 {
  margin: 22px 0 10px;
  font-size: 1.3rem;
}

.stat p:last-child {
  color: #6b4a24;
  font-size: 0.95rem;
}

/* ---------- roles ---------- */
.page-roles {
  background: var(--cream);
}

.role-list {
  border-top: 1px solid var(--line);
}

.role {
  display: grid;
  grid-template-columns: 70px 64px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, background 0.25s ease;
}

.role:hover {
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.role-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #b03a63;
}

.role-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(61, 18, 47, 0.12);
}

.avatar-warm {
  background: radial-gradient(circle at 32% 28%, #ffe3c9, #ff9f7b 62%, #d96a58);
}

.avatar-cool {
  background: radial-gradient(circle at 32% 28%, #e4e6ff, #9f9ee8 62%, #615ba8);
}

.avatar-bright {
  background: radial-gradient(circle at 32% 28%, #fff2c6, #ffd36e 62%, #d99c2f);
}

.avatar-night {
  background: radial-gradient(circle at 32% 28%, #d7e7ff, #7aa3d6 62%, #35507a);
}

.role-body h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.role-body p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.95rem;
}

.role-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9a6a7c;
  white-space: nowrap;
}

/* ---------- memory ---------- */
.page-memory {
  background:
    radial-gradient(700px 420px at 88% 10%, rgba(255, 178, 122, 0.14), transparent 64%),
    linear-gradient(160deg, var(--plum), var(--plum-deep));
  color: #f8ece5;
}

.page-memory::before {
  content: "MEMORY";
  position: absolute;
  right: -2vw;
  top: 12%;
  font-family: var(--serif);
  font-size: clamp(5rem, 15vw, 13rem);
  font-style: italic;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.memory-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.memory-quote blockquote {
  padding: 38px 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.6;
}

.memory-reply {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--apricot);
  color: #e4c3b5;
  font-size: 0.98rem;
  font-weight: 400;
}

.memory-copy h2 {
  color: #fff6ef;
}

.memory-copy > p {
  margin-top: 16px;
  color: #cfa9b0;
}

.memory-list {
  margin-top: 28px;
}

.memory-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8b7be;
  font-size: 0.94rem;
}

.memory-list span {
  display: inline-block;
  min-width: 48px;
  margin-right: 12px;
  color: var(--apricot);
  font-weight: 700;
}

/* ---------- gallery ---------- */
.page-gallery {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 52px;
  align-items: center;
}

.gallery-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
}

.gallery-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-hint {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #b08a98;
}

.film {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.film .shot {
  flex: none;
  width: 208px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4e8dc;
  box-shadow: 0 20px 44px rgba(61, 18, 47, 0.12);
  scroll-snap-align: start;
}

.film .shot img {
  width: 100%;
}

/* ---------- scenes ---------- */
.page-scenes {
  background:
    radial-gradient(640px 380px at 12% 90%, rgba(255, 255, 255, 0.6), transparent 68%),
    #ffe3e8;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.scene {
  padding: 30px 30px 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(61, 18, 47, 0.12);
}

.scene-time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: #b03a63;
}

.scene h3 {
  margin: 14px 0 8px;
  font-size: 1.22rem;
}

.scene p:last-child {
  color: #7a5262;
  font-size: 0.94rem;
}

/* ---------- privacy ---------- */
.page-privacy {
  background: #1c0c17;
  color: #f6e9e2;
}

.page-privacy h2 {
  color: #fff5ee;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.privacy-grid p {
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #c3a3ab;
  font-size: 0.94rem;
}

.privacy-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--apricot);
  font-size: 1.05rem;
}

/* ---------- download ---------- */
.page-download {
  background:
    radial-gradient(700px 420px at 90% 12%, rgba(255, 255, 255, 0.35), transparent 62%),
    linear-gradient(150deg, #ffb98c, #ff8fa4 78%);
  color: #3a1226;
}

.page-download .kicker {
  color: #7a1f3d;
}

.download-head {
  max-width: 640px;
  margin-bottom: 38px;
}

.download-head p {
  margin-top: 14px;
  color: #6b2038;
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.channel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 24px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(61, 18, 47, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.channel:not([hidden]):hover,
.channel:not([hidden]):focus-visible {
  transform: translateY(-4px);
  background: #fffaf3;
}

.channel-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #a32e58;
  text-transform: uppercase;
}

.channel strong {
  margin-top: 12px;
  font-size: 1.22rem;
}

.channel small {
  color: #7d5262;
  font-size: 0.86rem;
}

.download-note {
  margin-top: 20px;
  color: rgba(58, 18, 38, 0.6);
  font-size: 0.84rem;
}

.download-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(58, 18, 38, 0.24);
}

.brand-footer .brand-text strong {
  font-size: 17px;
}

.brand-footer .brand-text small {
  color: rgba(58, 18, 38, 0.62);
}

.download-foot > p {
  color: rgba(58, 18, 38, 0.7);
  font-size: 0.88rem;
}

.to-top-link {
  margin-left: auto;
  font-size: 0.85rem;
  color: #5b1c32;
  border-bottom: 1px solid rgba(91, 28, 50, 0.4);
}

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(61, 18, 47, 0.2);
  background: rgba(255, 250, 243, 0.9);
  color: var(--plum);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background:
    radial-gradient(700px 420px at 18% 12%, rgba(255, 178, 122, 0.35), transparent 64%),
    linear-gradient(160deg, #fdf2e7, #f8e4d4);
}

.not-found-card {
  width: min(600px, 100%);
  padding: 54px 42px;
  border-radius: 30px;
  background: rgba(255, 250, 243, 0.86);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 30px 70px rgba(61, 18, 47, 0.12);
}

.not-found-code {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4.2rem, 12vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #b03a63;
}

.not-found h1 {
  margin-top: 18px;
  font-size: 1.65rem;
}

.not-found p {
  margin-top: 12px;
  color: var(--muted);
}

.not-found .btn {
  margin-top: 30px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .memory-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .device {
    width: min(300px, 100%);
  }

  .page {
    min-height: auto;
    padding: 104px 0 64px;
  }

  .page-hero {
    padding-top: 112px;
  }

  .memory-grid {
    gap: 44px;
  }

  .gallery-copy {
    max-width: 560px;
  }

  .film .shot {
    width: 190px;
  }

  .page-head-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .head-note {
    max-width: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  .header-inner {
    min-height: 60px;
  }

  .nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
    padding: 9px 15px;
  }

  .page-inner {
    width: calc(100% - 40px);
  }

  .page {
    padding: 92px 0 56px;
    min-height: auto;
  }

  .hero-copy h1 {
    margin-top: 20px;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .device {
    width: min(286px, 100%);
    padding: 42px 14px 14px;
  }

  .device-chat {
    min-height: 280px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .stat {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid rgba(61, 18, 47, 0.2);
  }

  .stat:first-child {
    padding-left: 0;
  }

  .page-head {
    margin-bottom: 32px;
  }

  .role {
    grid-template-columns: 44px 48px 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .role-avatar {
    width: 48px;
    height: 48px;
  }

  .role-tag {
    grid-column: 3;
    font-size: 11px;
  }

  .role:hover {
    padding-left: 0;
    background: transparent;
  }

  .memory-quote blockquote {
    padding: 28px 22px;
  }

  .gallery-grid {
    gap: 28px;
  }

  .film {
    margin-right: -20px;
    padding-right: 20px;
  }

  .scene-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .download-head {
    margin-bottom: 28px;
  }

  .download-foot {
    margin-top: 36px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .channel:not([hidden]):hover {
    transform: none;
  }
}
