:root {
  --ink: #181512;
  --muted: #626f6a;
  --paper: #f3f6f2;
  --panel: #fbfcf7;
  --line: #d8ded6;
  --charcoal: #191817;
  --brass: #c5964e;
  --red: #9f3830;
  --steel: #73808a;
  --green: #356d66;
  --shadow: 0 20px 60px rgba(24, 21, 18, 0.12);
}

@font-face {
  font-family: "Remarcle";
  src: url("assets/fonts/Remarcle-lBx0.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 15px clamp(18px, 4vw, 56px);
  color: #f5f1e9;
  background: #050505;
  border-bottom: 1px solid rgba(197, 150, 78, 0.32);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 300px;
  min-height: 58px;
}

.brand-switch {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 300px;
  min-height: 58px;
}

.brand-name {
  display: block;
  font-family: "Remarcle", Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.brand-tagline {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  opacity: 0;
  transform: translateY(-44%) translateX(8px);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.brand-tagline small {
  display: block;
  color: rgba(245, 241, 233, 0.82);
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.05;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  opacity: 0;
  transform: translateX(-8px);
}

.brand:hover .brand-tagline,
.brand:focus-visible .brand-tagline {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: rgba(245, 241, 233, 0.72);
  font-size: 16px;
  font-weight: 800;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.28)),
    url("assets/image/主页1.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-statement {
  position: absolute;
  right: clamp(28px, 8vw, 120px);
  top: calc(50% - 2em);
  z-index: 2;
  max-width: 46vw;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: right;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.58),
    0 18px 42px rgba(0, 0, 0, 0.62);
  opacity: 0;
  transform: translateY(-42%);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-statement.is-visible {
  opacity: 1;
  transform: translateY(-50%);
}

html[lang="en"] .hero-statement {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4.2vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}

.hero-statement span {
  display: block;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2,
.amp-modifications .section-heading h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #17120e;
  background: var(--brass);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  --section-gutter: clamp(18px, 5vw, 72px);
  padding: clamp(72px, 10vw, 122px) var(--section-gutter);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
}

.body-copy {
  color: #34413c;
  font-size: 18px;
  line-height: 1.82;
}

.scroll-fade-section {
  --scroll-fade-opacity: 0;
  --scroll-fade-lift: 42px;
  --scroll-fade-blur: 4px;
}

.scroll-fade-section.is-visible {
  --scroll-fade-opacity: 1;
  --scroll-fade-lift: 0px;
  --scroll-fade-blur: 0px;
}

.scroll-fade-content {
  opacity: var(--scroll-fade-opacity);
  transform: translateY(var(--scroll-fade-lift));
  filter: blur(var(--scroll-fade-blur));
  transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease;
  will-change: opacity, transform, filter;
}

.about-title {
  white-space: nowrap;
}

.about-eyebrow {
  font-size: 24px;
  text-transform: none;
}

html[lang="en"] .about-eyebrow { display: none; }
html[lang="en"] .about-title { white-space: normal; }

.product-carousel {
  position: relative;
}

.product-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.product-viewport::-webkit-scrollbar {
  display: none;
}

.product-track {
  display: flex;
  gap: 22px;
}

.product-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  outline: none;
  cursor: pointer;
}

.product-visual {
  position: relative;
  display: grid;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-visual-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-visual.product-visual-photo {
  display: grid;
  aspect-ratio: 2 / 3;
  background: #090909;
}

.product-visual.product-visual-photo::after {
  display: none;
}

.product-details {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 44px);
  color: var(--ink);
  text-align: center;
  background: rgba(243, 246, 242, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.product-details p {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  transform: translateY(16px);
  transition: transform 0.5s ease;
}

.product-details p::first-letter {
  float: left;
  margin: 0.02em 0.12em 0 0;
  font-size: 3.1em;
  font-weight: 700;
  line-height: 0.88;
}

.product-quote {
  display: block;
  width: 100%;
  margin-top: 5.1em;
  text-align: right;
}

.product-quote-center {
  text-align: center;
}

html[lang="en"] .product-details {
  padding: clamp(14px, 2vw, 32px);
}

html[lang="en"] .product-details p {
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.45;
}

html[lang="en"] .product-details p::first-letter {
  float: none;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.product-cover-opening {
  float: left;
  margin: 0.04em 0.16em 0 0;
  font-size: 2.45em;
  font-weight: 700;
  line-height: 0.92;
}

html[lang="en"] .product-quote { margin-top: 1.25em; }
html[lang="en"] [data-product="dream-castle"] .product-details { display: none; }

.product-card:hover .product-details,
.product-card:focus-visible .product-details {
  opacity: 1;
}

.product-card:hover .product-details p,
.product-card:focus-visible .product-details p {
  transform: translateY(0);
}

.product-visual > span {
  color: rgba(255, 255, 255, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: -0.08em;
}

.visual-product-1 { background: #8f3630; }
.visual-product-2 { background: #315f58; }
.visual-product-3 { background: #667782; }
.visual-product-4 { background: #a77b3f; }
.visual-product-5 { background: #4d465f; }
.visual-product-6 { background: #a05f46; }
.visual-product-7 { background: #344653; }
.visual-product-8 { background: #72704e; }
.visual-product-9 { background: #171717; }

.product-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 2px 0;
  text-align: center;
}

.product-meta h3 {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
}

.product-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-status.is-sold {
  color: #747b77;
}

.product-status.is-coming {
  color: var(--red);
}

.carousel-zone {
  position: absolute;
  top: 0;
  bottom: 54px;
  z-index: 3;
  width: clamp(58px, 8vw, 112px);
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.carousel-zone:hover,
.carousel-zone:focus-visible {
  opacity: 1;
}

.carousel-zone-left {
  left: 0;
  text-align: left;
  background: linear-gradient(90deg, rgba(9, 9, 9, 0.48), transparent);
}

.carousel-zone-right {
  right: 0;
  text-align: right;
  background: linear-gradient(270deg, rgba(9, 9, 9, 0.48), transparent);
}

.carousel-zone span {
  display: inline-block;
  padding: 0 18px;
  font-family: Arial, sans-serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 200;
  line-height: 1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

.dark-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(25, 24, 23, 0.96), rgba(25, 24, 23, 0.9)),
    repeating-linear-gradient(90deg, #222 0 10px, #181818 10px 20px);
}

.amp-category + .amp-category {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.amp-category > h3 {
  margin: 0 0 16px;
}

.amp-modifications {
  position: relative;
  isolation: isolate;
  margin: clamp(32px, 5vw, 64px) calc(-1 * var(--section-gutter)) 0;
  padding: 28px clamp(16px, 4vw, 48px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.amp-modifications-copy {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(245, 241, 233, 0.9);
  text-align: center;
}

html[lang="en"] .amp-modifications-copy { max-width: 1080px; }

.amp-modifications-copy p { margin: 0 0 1em; }
.amp-modifications-copy p:last-child { margin-bottom: 0; }

.amp-modifications-contact {
  display: grid;
  place-items: center;
  min-height: clamp(112px, 12vw, 152px);
}

#amps { padding-bottom: 0; }

.amp-modifications-contact .button {
  width: min(100%, 220px);
  min-height: 58px;
  font-size: 1.125rem;
}

.cart-confirm.amp-mod-request { width: min(580px, calc(100% - 32px)); }
.cart-confirm.amp-mod-request form { display: block; margin-top: 16px; text-align: start; }
.amp-mod-request textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  resize: vertical;
}
.amp-mod-request-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.amp-modifications-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.23;
  mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent);
}

.amp-modifications-track,
.amp-modifications-strip { display: flex; width: max-content; height: 100%; }

.amp-modifications-strip img {
  width: clamp(230px, 28vw, 400px);
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .amp-modifications-track { animation: records-scroll var(--amp-modifications-duration, 210s) linear infinite; }
}

.amp-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.amp-layout article {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.amp-layout > article:only-child {
  grid-column: 1 / -1;
  width: min(100%, 880px);
  justify-self: center;
}

.amp-layout h4 {
  margin: 0;
  font-size: 1.125rem;
}

.amp-product-cover {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
}

.amp-product-image {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 180ms ease;
}

.amp-product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 2vw, 20px);
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.amp-product-overlay h4 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  transform: translateY(16px);
  transition: transform 0.5s ease;
}

.amp-model-numeral {
  color: #ff4040;
}

.amp-product-cover:is(:hover, :focus) .amp-product-image {
  filter: blur(2px);
}

.amp-product-cover:is(:hover, :focus) .amp-product-overlay {
  opacity: 1;
}

.amp-product-cover:is(:hover, :focus) .amp-product-overlay h4 {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .amp-product-image,
  .amp-product-overlay,
  .amp-product-overlay h4 {
    transition: none;
  }
}

.amp-category p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.case-toggle {
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.case-toggle::-webkit-details-marker { display: none; }

.case-toggle::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-inline-start: 0.6em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-0.2em) rotate(45deg);
}

details[open] > .case-toggle::after {
  transform: translateY(0.05em) rotate(225deg);
}

#cases > .section-heading { margin-bottom: 0; }

#cases > .case-group:first-of-type { margin-top: 34px; }

.case-group + .case-group { margin-top: 24px; }

.case-group > .case-toggle {
  font-size: 1.25rem;
  font-weight: 700;
}

.case-group > .case-carousel { margin-top: 20px; }

.case-records {
  margin: 20px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.case-records-track,
.case-records-strip { display: flex; width: max-content; }

.case-records-strip {
  flex: none;
  gap: 14px;
  padding-inline-end: 14px;
}

.case-records-strip img {
  display: block;
  width: clamp(200px, 31vw, 420px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--panel);
  border-radius: 8px;
}

.case-records-strip button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.records-lightbox {
  padding: 0;
  border: 0;
  background: transparent;
}

.records-lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }

.records-lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}

.records-lightbox button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #161616;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.case-records-strip[aria-hidden="true"] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .case-records:has(.is-looping) { overflow: hidden; }
  .is-looping > .case-records-strip[aria-hidden="true"] { display: flex; }
  .case-records-track.is-looping { animation: records-scroll var(--records-duration, 180s) linear infinite paused; }
  body:not(:has(.records-lightbox[open])) #cases[open] > .case-group[open] .case-records:not(:hover, :focus-within) .is-looping {
    animation-play-state: running;
  }
}

@keyframes records-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
  #cases[open] > .case-group,
  .case-group[open] > :is(.case-carousel, .case-records) {
    animation: case-reveal 450ms ease-out both;
  }
}

@keyframes case-reveal {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    #cases[open] > .case-group,
    .case-group[open] > :is(.case-carousel, .case-records) {
      animation: none;
    }

    #cases::details-content,
    .case-group::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      opacity: 0;
      overflow: clip;
      transition: block-size 450ms ease, opacity 450ms ease,
        content-visibility 450ms allow-discrete;
    }

    #cases[open]::details-content,
    .case-group[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }
}

.case-carousel { position: relative; }

.case-list {
  --case-columns: 3;
  --case-gap: clamp(14px, 2vw, 24px);
  display: flex;
  justify-content: safe center;
  gap: var(--case-gap);
  overflow-x: auto;
  scrollbar-width: none;
}

.case-list::-webkit-scrollbar { display: none; }

.case-list > .case-item {
  flex: 0 0 calc((100% - (var(--case-columns) - 1) * var(--case-gap)) / var(--case-columns));
  min-width: 0;
}

.case-more {
  display: grid;
  place-items: center;
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
}

.case-item a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.case-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.case-group-amps .case-item img { aspect-ratio: 3 / 2; }

.case-item .case-cover-full { object-fit: contain; }

.case-item h4 {
  margin: 0;
  padding: 14px 16px;
  font-size: 1.125rem;
  text-align: center;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.contact-links span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.contact-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--charcoal);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand,
  .brand-switch {
    min-width: min(300px, 100%);
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
    align-items: start;
  }

  .hero-statement {
    right: 24px;
    max-width: 64vw;
    font-size: clamp(30px, 7vw, 52px);
  }

  .amp-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .about-title {
    white-space: normal;
  }

  .product-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 31px;
  }

  .brand-tagline small {
    font-size: 21px;
  }

  .nav {
    gap: 10px 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 720px;
    padding-top: 42px;
  }

  .hero-statement {
    right: 18px;
    top: calc(56% - 2em);
    max-width: 72vw;
    font-size: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .product-card {
    flex-basis: 84%;
  }

  .product-track {
    gap: 14px;
  }

  .carousel-zone {
    width: 54px;
  }

  .case-list {
    --case-columns: 2;
  }

  .site-footer {
    flex-direction: column;
  }
}
