/* 量诚有数 · 住宅 product page — scoped to .yx-res */
/* Visual lock: Steep 50% / Apple 30% / Linear 20% */

.yx-page.yx-res {
  --yx-display: "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --yx-sans: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --hero: #07111d;
  --ink: #101a24;
  --ink-2: #091521;
  --paper: #ffffff;
  --paper-alt: #f5f5f3;
  --paper-cool: #f5f5f7;
  --sand: #eceeec;
  --sand-card: #fafafa;
  --line: #e1e3e1;
  --ink-text: #101a24;
  --ink-muted: #5f6872;
  --ink-faint: #7e8790;
  --hero-text: #f4f2ec;
  --hero-muted: #b6bec7;
  --bronze: #ae9360;
  --gold: #ae9360;
  --shadow: 0 12px 36px rgba(16, 26, 36, .06);
  --radius-shot: 14px;
  --radius-card: 12px;
  color: var(--ink-text);
  font-family: var(--yx-sans);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.yx-res a {
  text-decoration: none;
}

.yx-res-top {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(7, 17, 29, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 242, 236, .08);
}

.yx-res .yx-home-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yx-res .yx-wordmark {
  display: grid;
  color: var(--hero-text);
  min-width: 0;
}

.yx-res .yx-wordmark strong {
  font-family: var(--yx-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
}

.yx-res .yx-wordmark span {
  margin-top: 3px;
  color: var(--hero-muted);
  font-size: 11px;
  letter-spacing: .16em;
}

.yx-res .yx-home-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.yx-res .yx-home-links a {
  color: var(--hero-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}

.yx-res .yx-home-links a:hover,
.yx-res .yx-home-links a[aria-current="page"] {
  color: var(--hero-text);
}

.yx-res-kicker {
  margin: 0 0 16px;
  color: var(--bronze);
  font-size: 12px;
  letter-spacing: .22em;
}

.yx-res h1,
.yx-res h2,
.yx-res h3,
.yx-res-close-brand {
  font-family: var(--yx-display);
  font-weight: 600;
  letter-spacing: -.02em;
}

.yx-res-hero {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(340px, 1.18fr);
  gap: 48px;
  align-items: center;
  padding: 48px max(24px, calc((100% - 1280px) / 2)) 72px;
  background: var(--hero);
}

.yx-res-hero h1 {
  margin: 0;
  max-width: 8.2em;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.14;
  color: var(--hero-text);
}

.yx-res-lead {
  max-width: 20em;
  margin: 24px 0 0;
  color: var(--hero-text);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
}

.yx-res-aside {
  max-width: 26em;
  margin: 16px 0 0;
  color: var(--hero-muted);
  font-size: 15px;
  line-height: 1.7;
}

.yx-res-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.yx-res .yx-button {
  min-width: 164px;
  min-height: 48px;
  border-radius: 4px;
  font-family: var(--yx-sans);
  font-weight: 500;
  letter-spacing: .06em;
  box-shadow: none;
}

.yx-res .yx-button.primary {
  color: var(--paper);
  border: 1px solid var(--ink);
  background: var(--ink);
}

.yx-res .yx-button.primary:hover {
  color: var(--ink);
  background: transparent;
}

.yx-res-hero .yx-button.primary {
  color: var(--hero);
  border: 1px solid var(--hero-text);
  background: var(--hero-text);
}

.yx-res-hero .yx-button.primary:hover {
  color: var(--hero-text);
  background: transparent;
}

.yx-res-status {
  margin: 0;
  color: var(--bronze);
  font-size: 12px;
  letter-spacing: .14em;
}

.yx-res-hero-visual {
  margin: 0;
}

.yx-res-devices {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  height: min(76vh, 720px);
  min-height: 520px;
  perspective: 2400px;
  perspective-origin: 48% 42%;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .28s ease-out;
}

.yx-res-devices-glow {
  display: none;
}

.yx-res-device {
  position: absolute;
  z-index: 1;
  transform-style: preserve-3d;
}

.yx-res-device-float {
  transform-style: preserve-3d;
  animation: yx-res-float 8s ease-in-out infinite;
}

.yx-res-device-phone .yx-res-device-float {
  animation-duration: 7s;
  animation-delay: -1.6s;
}

@keyframes yx-res-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 8px); }
}

.yx-res-device-shell {
  position: relative;
  padding: 10px;
  border-radius: var(--radius-shot);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow), 0 18px 40px rgba(0, 0, 0, .22);
}

.yx-res-device-screen {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.yx-res-device-screen::after {
  display: none;
}

.yx-res-device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.yx-res-device-tablet {
  left: -2%;
  top: 10%;
  width: min(92%, 640px);
  z-index: 1;
  transform: rotateY(14deg) rotateX(4deg) rotateZ(-4deg);
}

.yx-res-device-tablet .yx-res-device-screen {
  aspect-ratio: 4 / 3;
}

.yx-res-device-tablet .yx-res-device-screen img {
  object-fit: cover;
  object-position: center 46%;
  animation: yx-res-luopan 14s ease-in-out infinite;
}

@keyframes yx-res-luopan {
  0%, 100% { transform: scale(1.01); }
  50% { transform: scale(1.03); }
}

.yx-res-device-cam,
.yx-res-device-island,
.yx-res-device-bar,
.yx-res-device-phone .yx-res-device-shell::before,
.yx-res-device-phone .yx-res-device-shell::after {
  display: none;
}

.yx-res-device-phone {
  right: 2%;
  top: 22%;
  width: min(30%, 200px);
  z-index: 2;
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(4deg);
}

.yx-res-device-phone .yx-res-device-shell {
  padding: 8px;
  border-radius: 16px;
}

.yx-res-device-phone .yx-res-device-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 10px;
}

.yx-res-device-phone .yx-res-device-screen img {
  object-position: center top;
  height: 124%;
  animation: yx-res-manual-pan 14s ease-in-out infinite alternate;
}

@keyframes yx-res-manual-pan {
  from { transform: translateY(0); }
  to { transform: translateY(-16%); }
}

@media (prefers-reduced-motion: reduce) {
  .yx-res-devices {
    transform: none;
    transition: none;
  }

  .yx-res-device-tablet,
  .yx-res-device-phone {
    transform: none;
  }

  .yx-res-device-float,
  .yx-res-device-tablet .yx-res-device-screen img,
  .yx-res-device-phone .yx-res-device-screen img {
    animation: none;
  }
}

.yx-res-hero-visual figcaption,
.yx-res-gallery figcaption,
.yx-res-gallery-row figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .12em;
}

.yx-res-hero-visual figcaption {
  color: var(--hero-muted);
}

.yx-res-gallery figcaption,
.yx-res-gallery-row figcaption {
  color: var(--ink-faint);
}

.yx-res-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-shot);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.yx-res-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.yx-res-steps .yx-res-shot img {
  object-fit: contain;
  background: var(--paper);
}

.yx-res-shot-action {
  aspect-ratio: 3 / 4;
  max-height: 640px;
  background: var(--paper);
}

.yx-res-shot-action img,
.yx-res-steps .yx-res-shot-action img {
  object-fit: contain;
  object-position: center top;
  background: var(--paper);
}

.yx-res-strip {
  border-top: 1px solid rgba(244, 242, 236, .08);
  border-bottom: 0;
  background: var(--hero);
}

.yx-res-strip-track {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.yx-res-strip-track::-webkit-scrollbar {
  display: none;
}

.yx-res-strip ul {
  list-style: none;
  margin: 0;
  padding: 16px 0 28px;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
}

.yx-res-strip li {
  color: var(--hero-muted);
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.yx-res-strip li + li::before {
  content: "｜";
  margin: 0 18px;
  color: rgba(182, 190, 199, .45);
}

.yx-res-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 96px;
  scroll-margin-top: 88px;
}

.yx-res-section-canvas,
.yx-res-section-white,
.yx-res-section-paper,
.yx-res-section-ink {
  width: 100%;
  box-sizing: border-box;
  padding-left: max(24px, calc((100% - 1180px) / 2));
  padding-right: max(24px, calc((100% - 1180px) / 2));
}

.yx-res-section-canvas {
  background: var(--paper-alt);
}

.yx-res-section-white {
  background: var(--paper);
}

.yx-res-head {
  max-width: 720px;
}

.yx-res-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.22;
}

.yx-res-head p {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.75;
}

.yx-res-head .yx-res-gallery-note {
  margin: 14px 0 0;
  max-width: none;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .14em;
  line-height: 1.6;
}

.yx-res-head .yx-res-moat-sub {
  margin: 18px 0 0;
  max-width: 18em;
  color: var(--ink);
  font-family: var(--yx-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.4;
}

.yx-res-steps {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  gap: 80px;
}

.yx-res-steps li {
  display: grid;
  grid-template-columns: minmax(200px, .34fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.yx-res-step-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--bronze);
  font-size: 11px;
  letter-spacing: .18em;
}

.yx-res-step-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
}

.yx-res-step-copy p {
  margin: 0;
  max-width: 26em;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.75;
}

.yx-res-steps .yx-res-shot {
  aspect-ratio: 4 / 3;
}

.yx-res-steps .yx-res-shot-bleed {
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.yx-res-steps .yx-res-shot-bleed img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.yx-res-steps li:nth-child(2) .yx-res-shot {
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.yx-res-steps li:nth-child(3) .yx-res-shot-action {
  aspect-ratio: 3 / 4;
  max-height: 620px;
}

.yx-res-section-ink {
  background: var(--hero);
  color: var(--hero-text);
}

.yx-res-section-ink .yx-res-kicker {
  color: var(--gold);
}

.yx-res-section-ink .yx-res-head p {
  color: var(--hero-muted);
}

.yx-res-questions {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.yx-res-questions article {
  min-height: 0;
  padding: 8px 28px 8px 0;
  border: 0;
  border-right: 1px solid rgba(244, 242, 236, .12);
}

.yx-res-questions article:last-child {
  padding-right: 0;
  border-right: 0;
}

.yx-res-questions article:not(:first-child) {
  padding-left: 28px;
}

.yx-res-questions h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 28px);
}

.yx-res-questions p {
  margin: 0;
  color: var(--hero-muted);
  font-size: 15px;
  line-height: 1.75;
}

.yx-res-gallery {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, .82fr);
  gap: 28px 28px;
  align-items: start;
}

.yx-res-gallery-main {
  margin-top: 8px;
}

.yx-res-gallery-main .yx-res-shot {
  aspect-ratio: 4 / 5;
  max-height: 720px;
}

.yx-res-gallery-main img {
  object-position: 42% 28%;
}

.yx-res-gallery-side {
  display: grid;
  gap: 28px;
  padding-top: 48px;
}

.yx-res-gallery-side .yx-res-shot {
  aspect-ratio: 16 / 11;
  max-height: 300px;
}

.yx-res-gallery-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.yx-res-gallery-row figure:first-child {
  margin-top: 40px;
}

.yx-res-gallery-row .yx-res-shot {
  aspect-ratio: 16 / 10;
  max-height: 280px;
}

.yx-res-gallery-row .yx-res-shot-action {
  aspect-ratio: 3 / 4;
  max-height: 400px;
}

.yx-res-section-paper {
  background: var(--paper-cool);
}

.yx-res-flow {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.yx-res-flow li {
  position: relative;
  min-width: 0;
  padding: 20px 24px 8px 0;
}

.yx-res-flow li:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  margin-right: 24px;
}

.yx-res-flow li:not(:last-child)::after {
  content: none;
}

.yx-res-flow b {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--yx-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
}

.yx-res-flow span {
  display: block;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.65;
}

.yx-res-moat-note {
  max-width: 34em;
  margin: 48px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

.yx-res-close {
  padding: 160px 24px 112px;
  text-align: center;
  background: var(--hero);
  color: var(--hero-text);
}

.yx-res-close h2 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.18;
  color: var(--hero-text);
}

.yx-res-close-brand {
  margin: 32px 0 0;
  color: var(--bronze);
  letter-spacing: .22em;
  font-size: 13px;
}

.yx-res-close .yx-res-status {
  margin-top: 16px;
}

.yx-res-extend {
  max-width: 28em;
  margin: 56px auto 0;
  color: var(--hero-muted);
  font-size: 13px;
  line-height: 1.8;
}

.yx-res-footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(244, 242, 236, .1);
  color: var(--hero-muted);
  background: var(--hero);
}

.yx-res-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yx-res-footer p {
  margin: 0;
  color: var(--hero-text);
  font-family: var(--yx-display);
  font-size: 16px;
  line-height: 1.5;
}

.yx-res-footer span {
  color: var(--hero-muted);
  font-family: var(--yx-sans);
  font-size: 12px;
  letter-spacing: .12em;
}

.yx-res-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.yx-res-footer a {
  color: var(--hero-muted);
  font-size: 12px;
  letter-spacing: .06em;
}

.yx-res-footer a:hover {
  color: var(--hero-text);
}

@media (min-width: 1600px) {
  .yx-res-hero {
    padding-left: max(40px, calc((100% - 1480px) / 2));
    padding-right: max(40px, calc((100% - 1480px) / 2));
    gap: 56px;
  }

  .yx-res-hero h1 {
    font-size: 80px;
  }

  .yx-res-devices {
    height: min(78vh, 800px);
  }
}

@media (max-width: 1040px) {
  .yx-res-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .yx-res-hero h1 {
    font-size: clamp(36px, 9vw, 48px);
    max-width: none;
  }

  .yx-res-devices {
    height: min(58vh, 480px);
    min-height: 360px;
  }

  .yx-res-device-tablet {
    width: 86%;
    left: 0;
    transform: rotateY(10deg) rotateX(4deg) rotateZ(-3deg);
  }

  .yx-res-device-phone {
    width: 34%;
    top: 22%;
    transform: rotateY(-8deg) rotateX(3deg) rotateZ(4deg);
  }

  .yx-res-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .yx-res-steps li,
  .yx-res-gallery,
  .yx-res-questions,
  .yx-res-gallery-row,
  .yx-res-flow {
    grid-template-columns: 1fr;
  }

  .yx-res-steps {
    gap: 48px;
  }

  .yx-res-questions article,
  .yx-res-questions article:not(:first-child),
  .yx-res-questions article:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 242, 236, .12);
  }

  .yx-res-questions article:last-child {
    border-bottom: 0;
  }

  .yx-res-flow li:not(:last-child) {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 4px;
  }

  .yx-res-gallery-main,
  .yx-res-gallery-side,
  .yx-res-gallery-row figure:first-child {
    margin-top: 0;
    padding-top: 0;
  }

  .yx-res-gallery-side,
  .yx-res-gallery-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .yx-res-gallery-side .yx-res-shot,
  .yx-res-gallery-row .yx-res-shot,
  .yx-res-gallery-main .yx-res-shot {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .yx-res-gallery-row .yx-res-shot-action,
  .yx-res-steps li:nth-child(3) .yx-res-shot-action {
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }

  .yx-res-questions h3 {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .yx-res .yx-home-nav,
  .yx-res-strip-track,
  .yx-res-section,
  .yx-res-footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .yx-res-hero {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .yx-res .yx-home-nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .yx-res .yx-home-links {
    gap: 16px;
    justify-content: flex-start;
  }

  .yx-res-lead br {
    display: none;
  }

  .yx-res-hero h1 {
    font-size: clamp(38px, 10.5vw, 44px);
  }

  .yx-res-section,
  .yx-res-section-ink,
  .yx-res-section-paper,
  .yx-res-section-canvas,
  .yx-res-section-white {
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .yx-res-head h2 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .yx-res-steps {
    gap: 40px;
  }

  .yx-res-step-copy h3 {
    font-size: 24px;
  }

  .yx-res-questions h3 {
    font-size: 24px;
  }

  .yx-res-moat-note {
    font-size: 16px;
  }

  .yx-res-close {
    padding: 96px 16px 80px;
  }

  .yx-res-close h2 {
    font-size: clamp(32px, 10vw, 44px);
  }
}
