/* Meili Home ── Story Page Styles */

/* ── Story Banner (extends .cat-banner from shop.css) ── */

/* 引入 shop.css 里的 cat-banner 基础样式 */
/* story 页需要单独引入 shop.css，或在此复写需要的差异 */

.story-banner {
  height: 480px; /* 比 living 稍高，容纳更多文字 */
}

.story-banner-body {
  padding: 40px 48px;
  gap: 12px;
}

.story-banner-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  color: #fff;
}

/* h1 继承 .cat-banner-body h1，尺寸略调大 */
.story-banner-body h1 {
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.1;
}

/* sub 文字 */
.story-banner-body p {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.82;
  max-width: 460px;
  line-height: 1.7;
}

.story-banner-link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s, opacity 0.2s;
}

.story-banner-link:hover {
  border-color: #fff;
  opacity: 0.8;
}



/* ── Story Hero Banner ────────────────────────────────── */
.story-hero {
  height: 60vh;
  min-height: 420px;
  background: #ddd8d0 center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
}

.story-hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.story-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 16px;
}

.story-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.story-hero-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
  margin-top: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Story Narrative Section ───────────────────────────── */
.story-narrative {
  background: var(--bg);
  padding: 80px 0;
}

.story-narrative-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  text-align: center;
}

.story-narrative .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.story-narrative h2 {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 32px;
}

.story-narrative p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* ── Story Split (image + text) ───────────────────────── */
.story-split {
  background: #ede9e2;
  padding: 80px 0;
}

.story-split-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-split-img {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd8d0;
}

.story-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-split-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-split-copy .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.story-split-copy h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.story-split-copy p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-muted);
}

/* Alternate: image on right */
.story-split--reverse .story-split-inner {
  direction: rtl;
}

.story-split--reverse .story-split-img,
.story-split--reverse .story-split-copy {
  direction: ltr;
}

/* ── Timeline Section ─────────────────────────────────── */
.story-timeline {
  background: var(--bg);
  padding: 80px 0;
}

.story-timeline-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.story-timeline-head {
  text-align: center;
  margin-bottom: 56px;
}

.story-timeline-head .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.story-timeline-head h2 {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 500;
  color: var(--ink);
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  padding-top: 4px;
}

.timeline-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.timeline-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-muted);
}

/* ── Quote Section ────────────────────────────────────── */
.story-quote {
  background: #2b2320;
  padding: 80px 0;
  text-align: center;
}

.story-quote-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.story-quote p {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: #e8e0d8;
}

.story-quote .quote-attr {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a89f96;
  margin-top: 24px;
}

/* ── CTA Banner ───────────────────────────────────────── */
.story-cta {
  background: #ede9e2;
  padding: 72px 0;
  text-align: center;
}

.story-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

.story-cta h2 {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.story-cta p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.story-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--ink);
  color: #f7f4ee;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.story-cta-btn:hover { opacity: 0.8; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Story Banner ── */
  .story-banner {
    aspect-ratio: 13 / 10;
    height: auto !important;
  }

  .story-banner-body {
    padding: 20px 16px;
    gap: 8px;
  }

  .story-banner-body h1 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .story-banner-body p {
    font-size: 12px;
  }

  /* ── Story Splits ── */
  .story-splits {
    padding: 32px 0 24px;
  }

  .story-splits-inner {
    padding: 0 !important;
    gap: 32px;
  }

  .story-row,
  .story-row--reverse,
  .story-row--wide-img,
  .story-row--image-right {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 0 !important;
  }

  /* 图片在上，文字在下 */
  .story-row-img {
    order: 0 !important;
    aspect-ratio: unset !important;
    border-radius: 0;
    height: auto;
    overflow: visible;
    background: none;
    display: block;
  }

  .story-row-img img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }

  .story-row-copy {
    order: 1 !important;
    padding: 12px 16px;
    gap: 8px;
  }

  /* ── Closing Banner ── */
  .story-closing-banner {
    height: auto;
    aspect-ratio: 2170 / 725;
  }

  .story-closing-body {
    max-width: 100%;
    padding: 16px;
    gap: 12px;
  }

  .story-closing-body h2 {
    font-size: clamp(18px, 5vw, 28px);
  }

  .story-closing-btns {
    flex-direction: column;
    gap: 10px;
  }

  .story-btn {
    text-align: center;
  }

  /* ── Timeline ── */
  .story-split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-split--reverse .story-split-inner {
    direction: ltr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-year {
    font-size: 22px;
  }
}

/* ── Story Split Sections ─────────────────────────────── */
.story-splits {
  background: var(--bg);
  padding: 72px 0 56px;
}

.story-splits-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: center;
}

.story-row--reverse {
  direction: ltr;
  grid-template-columns: 2fr 1fr;
}

.story-row--reverse .story-row-img {
  order: -1;
}

.story-row--reverse .story-row-copy {
  order: 1;
}

/* Image */
.story-row-img {
  aspect-ratio: 16 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd8d0;
}

.story-row-img img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Copy */
.story-row-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* "01  ·  OUR BELIEF" label */
.story-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.story-row-num {
  color: var(--ink-muted);
}

.story-row-tag::before {
  content: '';
}

.story-row-copy h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.story-row-copy p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-muted);
}

/* ── Closing Banner ───────────────────────────────────── */
.story-closing {
  background: #2b2320;
  padding: 96px 0;
  text-align: center;
}

.story-closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.story-closing-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #a89f96;
}

.story-closing-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a89f96;
}

.story-closing h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: #e8e0d8;
  max-width: 700px;
}

/* Row with text left / image right — image takes the larger share */
.story-row--wide-img {
  grid-template-columns: 2fr 1fr;
}

.story-row--image-right {
  grid-template-columns: 2fr 1fr;
}

.story-row--image-right .story-row-img {
  order: 1;
}

.story-row--image-right .story-row-copy {
  order: 0;
}

.story-row--wide-img.story-row--image-right {
  grid-template-columns: 1fr 2fr;
}

/* ── Closing Banner ───────────────────────────────────── */
.story-closing-banner {
  height: 360px;
}

.story-closing-body {
  justify-content: center;
  max-width: 50%;
  gap: 16px;
}

.story-closing-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}

.story-closing-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.story-btn {
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s, background 0.2s;
}

.story-btn--solid {
  background: #2b2320;
  color: #f7f4ee;
  border: 1px solid #2b2320;
}

.story-btn--solid:hover {
  opacity: 0.8;
}

.story-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}

.story-btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
