﻿:root {
  --paper: #f6efe3;
  --paper-2: #fffaf1;
  --paper-3: #eee0cd;
  --ink: #241b17;
  --ink-soft: #625145;
  --line: #d8c2a6;
  --cinnabar: #a14935;
  --jade: #2c6d5f;
  --porcelain: #4e7b8a;
  --brass: #b28143;
  --rose: #d49b8f;
  --shadow: 0 18px 48px rgba(86, 63, 39, 0.18);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Microsoft YaHei", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(44, 109, 95, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(177, 129, 67, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 32px;
  color: var(--ink);
  background: rgba(246, 239, 227, 0.78);
  border-bottom: 1px solid rgba(98, 81, 69, 0.12);
  backdrop-filter: blur(18px);
}
.site-header.is-solid { background: rgba(255, 250, 241, 0.94); }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgba(36, 27, 23, 0.12);
}
.brand-mark strong, .brand-mark small { display: block; line-height: 1.16; }
.brand-mark strong { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.brand-mark small { margin-top: 3px; font-size: 12px; color: var(--ink-soft); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(36, 27, 23, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.58);
}
.main-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
}
.main-nav a:hover, .main-nav a:focus-visible { background: var(--ink); color: var(--paper-2); outline: none; }

.hero {
  position: relative;
  min-height: 76svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 116px 8vw 52px;
  background: #f7efe4;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #d8cbb8;
  transition: opacity 260ms ease, transform 260ms ease;
}
.hero-video.is-switching { opacity: 0.18; transform: scale(1.012); }
.hero::before {
  content: "\25B6";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 250, 241, 0.72);
  border-radius: 50%;
  color: rgba(255, 250, 241, 0.94);
  background: rgba(36, 27, 23, 0.2);
  box-shadow: 0 12px 28px rgba(36, 27, 23, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 180ms ease, transform 180ms ease;
}
.hero.is-video-paused::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.94) 0%, rgba(255, 250, 241, 0.74) 28%, rgba(255, 250, 241, 0.22) 56%, rgba(255, 250, 241, 0) 78%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 0;
  height: 1px;
  background: rgba(98, 81, 69, 0.22);
}
.hero-copy, .video-dots { position: relative; z-index: 1; }
.hero-copy { max-width: 660px; }
.eyebrow, .section-kicker { margin: 0 0 16px; font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--brass); }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: pretty;
}
.lead { max-width: 610px; margin: 26px 0 0; font-size: 18px; line-height: 1.9; color: var(--ink-soft); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button.primary { background: var(--cinnabar); color: var(--paper-2); }
.button.primary:hover, .button.primary:focus-visible { background: #853927; }
.button.secondary { border-color: rgba(36, 27, 23, 0.34); color: var(--ink); background: rgba(255, 250, 241, 0.54); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--paper-2); }
.video-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  border: 1px solid rgba(98, 81, 69, 0.22);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.video-dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(36, 27, 23, 0.42);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.86);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.video-dot:hover, .video-dot:focus-visible { transform: scale(1.12); outline: none; border-color: var(--cinnabar); }
.video-dot.is-active { width: 34px; background: var(--cinnabar); border-color: var(--cinnabar); }
.video-dot.is-active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(161, 73, 53, 0.66);
  border-radius: inherit;
  animation: active-video-dot-pulse 2.4s ease-out infinite;
}

@keyframes active-video-dot-pulse {
  0%, 58% { opacity: 0; transform: scale(0.82); }
  72% { opacity: 0.72; }
  100% { opacity: 0; transform: scale(1.16); }
}

.section { padding: 90px 8vw; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
}
.section h2, .archive-head h2, .scarves-head h2, .source h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: pretty;
}
.section-heading p, .scarves-head p, .source-copy p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.9; text-wrap: pretty; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.series-grid article { min-height: 210px; padding: 28px; background: rgba(255, 250, 241, 0.7); }
.series-grid span { display: inline-flex; margin-bottom: 34px; color: var(--cinnabar); font-family: var(--serif); font-weight: 700; }
.series-grid h3 { margin: 0; font-family: var(--serif); font-size: 26px; }
.series-grid p { margin: 16px 0 0; color: var(--ink-soft); line-height: 1.75; text-wrap: pretty; }

.scarves, .archive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-3);
}
.scarves > :not(.river-water-canvas), .archive > :not(.river-water-canvas) { position: relative; z-index: 1; }
.river-water-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}
.scarves-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 34px;
}
.archive-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  text-align: center;
  margin-bottom: 34px;
}
.scarf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.archive-tools { width: min(720px, 100%); display: grid; gap: 18px; justify-items: center; }
.search { width: min(560px, 100%); display: grid; gap: 8px; justify-items: center; }
.search span { font-size: 13px; color: var(--ink-soft); }
.search input {
  width: 100%;
  text-align: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(98, 81, 69, 0.24);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.72);
}
.search input:focus { outline: 2px solid rgba(44, 109, 95, 0.3); border-color: var(--jade); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(98, 81, 69, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.58);
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-button:hover, .filter-button:focus-visible, .filter-button.is-active { color: var(--paper-2); background: var(--jade); border-color: var(--jade); outline: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(98, 81, 69, 0.18);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(161, 73, 53, 0.3);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.product-card:focus-within { transform: translateY(-4px); border-color: rgba(161, 73, 53, 0.42); box-shadow: var(--shadow); }
.product-media {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #eadcc9;
  cursor: pointer;
  overflow: hidden;
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(36, 27, 23, 0.38) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.product-media img { width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; transition: transform 320ms ease, filter 320ms ease; }
.product-media:focus-visible img { transform: scale(1.045); filter: saturate(1.05) contrast(1.03); }
.product-media:focus-visible { outline: 3px solid rgba(44, 109, 95, 0.44); outline-offset: -3px; }
.media-hint {
  z-index: 1;
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(36, 27, 23, 0.82);
  color: var(--paper-2);
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.product-media:focus-visible .media-hint { opacity: 1; transform: translateY(0); }
.product-body { display: grid; gap: 13px; padding: 18px; transition: background 240ms ease; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(78, 123, 138, 0.14); color: var(--jade); }
.product-card h3 { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.28; text-wrap: pretty; transition: color 200ms ease; }
.product-card p { margin: 0; color: var(--ink-soft); line-height: 1.7; text-wrap: pretty; white-space: pre-line; }

@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); border-color: rgba(161, 73, 53, 0.42); box-shadow: var(--shadow); }
  .product-card:hover::before { opacity: 1; }
  .product-card:hover .product-media::after { opacity: 1; }
  .product-card:hover .product-media img { transform: scale(1.045); filter: saturate(1.05) contrast(1.03); }
  .product-card:hover .media-hint { opacity: 1; transform: translateY(0); }
  .product-card:hover .product-body { background: rgba(243, 232, 216, 0.62); }
  .product-card:hover h3 { color: var(--cinnabar); }
}
.empty-state { margin: 34px 0 0; padding: 28px; border: 1px dashed var(--line); color: var(--ink-soft); background: rgba(255, 250, 241, 0.58); }

.site-footer {
  padding: 58px 8vw 30px;
  color: var(--paper-2);
  background:
    linear-gradient(90deg, rgba(44, 109, 95, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(177, 129, 67, 0.14) 1px, transparent 1px),
    #241b17;
  background-size: 54px 54px;
  border-top: 1px solid rgba(98, 81, 69, 0.42);
}
.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 34px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr);
  gap: 48px;
  align-items: start;
}
.footer-brand h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  text-wrap: pretty;
}
.footer-brand p:last-child {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(255, 250, 241, 0.74);
  line-height: 1.85;
  text-wrap: pretty;
}
.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.footer-info-grid section {
  min-width: 0;
}
.footer-info-grid h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--paper-2);
}
.footer-info-grid p {
  margin: 8px 0 0;
  color: rgba(255, 250, 241, 0.68);
  line-height: 1.75;
  text-wrap: pretty;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 241, 0.18);
  color: rgba(255, 250, 241, 0.58);
  font-size: 13px;
  line-height: 1.7;
}

.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(36, 27, 23, 0.66); }
.modal-panel {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(98, 81, 69, 0.22);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.icon-button:hover, .icon-button:focus-visible { color: var(--paper-2); background: var(--ink); outline: none; }
.modal-meta {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 18px;
  padding: 42px 34px;
  border-right: 1px solid var(--line);
  background: #f3e8d8;
}
.modal-meta p { margin: 0; color: var(--ink-soft); line-height: 1.8; text-wrap: pretty; }
.modal-meta p:first-child { color: var(--cinnabar); font-size: 13px; }
.modal-meta h2 { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.22; text-wrap: pretty; }
.modal-material { padding-top: 12px; border-top: 1px solid rgba(98, 81, 69, 0.18); }
.modal-image-shell {
  min-height: 0;
  overflow: auto;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(36, 27, 23, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 27, 23, 0.05) 1px, transparent 1px),
    #d8cbb8;
  background-size: 28px 28px;
}
.detail-gallery {
  display: grid;
  gap: 28px;
  width: min(1040px, 100%);
  margin: 0 auto;
}
.detail-gallery.is-single-image { display: block; }
.detail-gallery.is-single-image .detail-figure { width: min(100%, 760px); margin-inline: auto; }
.detail-figure {
  margin: 0;
  display: grid;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease var(--detail-reveal-delay, 0ms), transform 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--detail-reveal-delay, 0ms);
}
.detail-figure.is-revealed { opacity: 1; transform: translateY(0); }
.detail-figure img { width: 100%; margin: 0 auto; border-radius: 6px; box-shadow: var(--shadow); background: white; }

@media (max-width: 1180px) {
  .hero { padding-inline: 6vw; }
  .hero-copy { max-width: 620px; }
  .product-grid, .scarf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { padding: 12px 16px; }
  .main-nav { display: none; }
  .hero { min-height: 76svh; justify-content: flex-end; padding: 96px 22px 34px; }
  .hero-video { object-position: 62% center; }
  .hero-scrim {
    background: linear-gradient(90deg, rgba(255, 250, 241, 0.92) 0%, rgba(255, 250, 241, 0.66) 42%, rgba(255, 250, 241, 0.14) 72%, rgba(255, 250, 241, 0) 100%);
  }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 16px; max-width: 540px; }
  .section { padding: 64px 22px; }
  .section-heading, .archive-head, .scarves-head { grid-template-columns: 1fr; display: grid; }
  .section h2, .archive-head h2, .scarves-head h2 { font-size: 34px; }
  .product-grid, .scarf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer-main, .footer-info-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 50px 22px 28px; }
  .product-body { padding: 14px; }
  .product-card h3 { font-size: 19px; }
  .modal-panel { inset: 12px; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .modal-meta { padding: 28px 22px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-image-shell { padding: 18px; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .filters { align-items: center; }
  .product-grid, .scarf-grid, .series-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; justify-content: start; }
  .hero { min-height: 78svh; padding-top: 88px; padding-bottom: 96px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 15px; line-height: 1.72; }
  .hero-actions { margin-top: 24px; }
  .video-dots { bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .detail-figure { opacity: 1; transform: none; }
}
