.case-main { padding-bottom: clamp(40px,6vw,95px) }
.case-main:not(.case-archive) { width: min(94%,1880px); max-width: none; padding-inline: 0 }
.case-path { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; padding: 19px 0; color: var(--muted); font-size: 13px }
.case-path a,.site-head a[aria-current="page"] { color: var(--chestnut) }
.site-head a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px }
.case-intro { padding: 20px 0 28px }
.case-intro h1 { font-size: clamp(44px,4.5vw,76px) }
.case-intro > p { color: var(--muted); margin-top: 12px }
.filter-line,.filter-line form,.filter-line fieldset,.format { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.filter-line { border-block: 1px solid var(--line); padding: 14px 0; margin-bottom: 28px; justify-content: space-between; color: var(--muted); font-size: 14px }
.filter-line form { gap: clamp(12px,4vw,55px) }
.filter-line fieldset { position: relative; border: 0; margin: 0; padding: 0; gap: 4px }
.filter-line legend,.filter-line input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.filter-line fieldset span { display: block; padding: 6px 13px; cursor: pointer }
.filter-line input:checked + span { color: #fff; background: var(--chestnut) }
.filter-line input:focus-visible + span,.format select:focus-visible { outline: 2px solid var(--chestnut); outline-offset: 3px }
.format select { background: var(--linen); color: var(--ink); font: inherit; border: 1px solid #b6aa9b; padding: 6px 12px }
.story-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(30px,4vw,66px) clamp(20px,2.7vw,44px) }
.story-card { display: block; min-width: 0 }
.story-card figure { position: relative; background: #e5e1d6 }
.story-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #e5e1d6 }
.story-card figure.portrait-cover { aspect-ratio: 4/3; overflow: hidden; display: flex; justify-content: center; background: #e5e1d6 }
.story-card .portrait-cover img { height: 100%; width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain }
.image-label { position: absolute; top: 12px; left: 12px; background: #f6f3ecf2; color: var(--ink); padding: 2px 9px; font-size: 12px }
.play-label { position: absolute; bottom: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: #302820d9; border-radius: 50%; font-size: 13px }
.story-info { padding-top: 13px }
.story-info p { color: var(--muted); font-size: 13px; margin-bottom: 7px }
.story-info h2 { font-size: clamp(24px,2.3vw,39px); text-wrap: balance }
.story-card:hover { text-decoration: none }
.story-card:hover h2 { text-decoration: underline; text-underline-offset: 5px }
.story-card.lead { grid-column: 1/-1 }
.story-card.lead img { aspect-ratio: auto; height: auto }
.story-card.lead .story-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; padding-top: 16px }
.story-card.lead .story-info p { order: 2 }
.story-card.lead h2 { font-size: clamp(31px,3.2vw,50px) }
#empty-cases { padding: 30px 0 }
#empty-cases a { color: var(--chestnut); text-decoration: underline }
.story-heading { margin: clamp(16px,3vw,50px) auto 35px; max-width: 1100px }
.story-heading h1 { font-size: clamp(36px,4.3vw,72px); text-wrap: balance }
.story-heading .eyebrow { margin-bottom: 13px }
.facts-line { margin-top: 15px; color: var(--muted) }
.project-hero { margin: 0 0 clamp(50px,7vw,112px) }
.project-hero img { width: 100%; height: auto }
.project-hero figcaption,.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: right }
.article-body { margin: auto }
.story-chapter { margin-block: clamp(48px,8vw,130px) }
.story-chapter > h2 { font-size: clamp(28px,3vw,48px); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px }
.chapter-scene img { width: 100%; height: auto; object-fit: contain }
.chapter-scene:has(img[data-portrait]) { width: min(68%,800px); margin-inline: auto }
.chapter-details img[data-portrait] { max-height: 780px; object-fit: contain }
.chapter-copy { max-width: 760px; margin: clamp(26px,3.5vw,60px) auto; line-height: 1.95 }
.chapter-copy p + p { margin-top: 16px }
.chapter-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,3vw,48px); align-items: start; margin-top: 35px }
.chapter-details img { width: 100%; height: auto }
.chapter-details figure:nth-child(even) { margin-top: 45px }
.chapter-details:has(> figure:only-child) { grid-template-columns: minmax(0,.76fr); justify-content: center }
.style-guide > p { max-width: 780px; margin: 22px auto }
.style-guide > h2 { font-size: clamp(30px,3vw,45px); margin: 45px 0 20px }
.style-guide .article-images { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px }
.style-guide img { height: 410px; object-fit: contain }
.video-story { max-width: 1120px; margin: auto }
.video-intro { color: var(--muted); margin: 20px 0 0; max-width: 42em }
.screen,.video-recovery { width: min(100%,430px); margin: auto }
.screen video { display: block; width: 100%; height: auto; max-height: 76vh; aspect-ratio: 9/16; background: #201e1b }
.video-recovery { padding: 15px; color: var(--ink) }
.video-recovery button { font: inherit; margin-top: 6px; cursor: pointer }
.pictured { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5%; padding: clamp(25px,4.5vw,80px); background: #e9e3d9; margin-top: clamp(50px,7vw,110px) }
.pictured .eyebrow { margin-bottom: 8px }
.pictured h2 { font-size: clamp(30px,3.3vw,52px) }
.pictured p:not(.eyebrow) { margin-top: 16px; color: var(--muted) }
.pictured img { width: 100%; aspect-ratio: 1.35; object-fit: contain; mix-blend-mode: multiply }
.pictured .cta { margin-top: 22px }
.case-end { margin-top: 55px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--chestnut) }
@media(max-width:700px) {
  .filter-line fieldset span { padding: 6px 8px }
  .filter-line form { flex: 1 1 100%; gap: 10px }.filter-line { gap: 7px }
  .story-list { grid-template-columns: 1fr; gap: 32px }
  .story-card.lead { grid-column: auto }.story-card.lead .story-info { gap: 8px }
  .story-card.lead .story-info p { order: 0; flex-basis: 100% }
  .story-card.lead h2 { font-size: 29px }
  .story-heading h1 { font-size: clamp(30px,8vw,45px) }
  .chapter-details { grid-template-columns: 1fr; gap: 24px }
  .chapter-scene:has(img[data-portrait]) { width: 88% }
  .chapter-details figure:nth-child(even) { margin: 0 0 0 auto; width: 88% }
  .chapter-details:has(> figure:only-child) { grid-template-columns: 1fr }
  .pictured { grid-template-columns: 1fr; gap: 10px }
  .pictured img { grid-row: 1; max-height: 260px }
  .style-guide .article-images { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px }
  .style-guide img { height: 240px }
  .case-end { flex-wrap: wrap }
}

/* 案例关联产品统一横图规格；大场景保留完整原图。 */
.pictured img { height: auto; aspect-ratio: 4 / 3; object-fit: contain }

/* 案例：普通封面 4:3、通栏 16:9、明确的竖版画框 4:5。 */
.story-card img,.story-card .portrait-cover img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: center }
.story-card.lead img,.project-hero img,.chapter-scene img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center }
.chapter-details img,.pictured img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: center }
.chapter-scene img[data-portrait],.chapter-details img[data-portrait],.style-guide img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; object-position: center }

/* 后台驱动案例模板：普通列表方图，首项用通栏主图。 */
.story-card:not(.lead) img { aspect-ratio:1/1 }
.case-image-block { margin:36px 0 }
.case-image-block img { display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:16/9 }
.case-image-block.detail { width:min(80%,1100px);margin-inline:auto }
.case-image-block.detail img { aspect-ratio:4/3 }
.case-image-block.portrait { width:min(65%,780px);margin-inline:auto }
.case-image-block.portrait img { aspect-ratio:4/5 }
@media(max-width:700px){.case-image-block.detail,.case-image-block.portrait {width:100%}}
