:root {
  --blue: #003b5c;
  --blue-2: #0a506f;
  --pink: #f4c5cc;
  --pink-soft: #fff4f6;
  --paper: #f7fbfd;
  --ink: #073b56;
  --muted: #5d7683;
  --line: #cbdce4;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.15rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}
.brand-logo { width: 92px; height: 92px; max-width: none; object-fit: contain; transform: scale(1.52); transform-origin: center; }
.brand-link { display: block; width: 92px; height: 92px; overflow: hidden; background: var(--blue); line-height: 0; }
.header-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.header-label:hover, .header-label:focus-visible { color: var(--white); background: var(--blue); }

.hero-band { background: var(--pink-soft); }

.hero {
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  background: var(--pink-soft);
  border-radius: 0;
  overflow: hidden;
}
.hero-copy {
  padding: clamp(2.5rem, 4vw, 3.5rem);
  align-self: center;
}
.eyebrow, .case-number {
  margin: 0 0 .8rem;
  color: #b63f5f;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .2em;
}
h1, h2 { margin: 0 0 1.25rem; line-height: 1.28; letter-spacing: -.035em; }
h1 {
  max-width: 12.5em;
  font-size: clamp(2.55rem, 3.1vw, 3.2rem);
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
p { margin: 0; font-size: 1.08rem; }
.pills { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.pills span {
  padding: .48rem .9rem;
  border: 1px solid rgba(0,59,92,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-weight: 800;
}
.hero-photo { margin: 0; min-height: 620px; background: var(--pink-soft); border-radius: 28px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 28px; }

.case-section { padding: clamp(4rem, 8vw, 7rem) max(2rem, calc((100vw - 1180px)/2)); }
.case-dark { color: var(--white); background: var(--blue); }
.case-light { background: var(--white); }
.case-dark {
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.case-light {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.case-dark .section-heading p:not(.case-number) { color: #d9e9f0; }
.gallery { display: grid; gap: 1.25rem; }
.gallery-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.photo-card, .scene-photo, .story-card { margin: 0; overflow: hidden; border-radius: 28px; }
.photo-card { aspect-ratio: 3 / 4; background: #d7e4ea; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery .photo-card:first-child img { object-position: 52% 50%; }
.gallery .photo-card:nth-child(2) img { object-position: 50% 42%; }
.gallery .photo-card:nth-child(3) img { object-position: 50% 44%; }
.gallery .photo-card:nth-child(4) img { object-position: 50% 50%; }
.case-caption {
  max-width: 880px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  color: #d9e9f0;
  background: rgba(255,255,255,.06);
  text-align: center;
}

.case-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}
.case-intro-grid .section-heading { margin-bottom: 0; }
.scene-photo { aspect-ratio: 13 / 10; background: #e7f0f4; }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.story-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--pink-soft);
  border: 1px solid #f0dce0;
}
.story-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.story-card:first-child img { object-position: 50% 72%; }
.story-card:last-child img { object-position: 50% 70%; }
.story-grid-three .story-scene img { object-position: 50% 50%; }
.story-grid-three .feature-product img { object-position: 50% 72%; }
.story-card figcaption { padding: 1.25rem 1.35rem 1.5rem; }
.story-card strong { display: block; margin-bottom: .25rem; font-size: 1.18rem; }
.story-card span { display: block; color: var(--muted); font-size: .96rem; }

.closing {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) 2rem clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.preview-note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--white);
  font-size: .95rem;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.2rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}
.btn-primary { color: var(--white); background: var(--blue); }
.btn-secondary { color: var(--blue); background: var(--white); }
.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.2rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.mobile-line-float { display: none; }
footer {
  padding: 2rem;
  color: var(--white);
  background: var(--blue);
  text-align: center;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
}

@media (min-width: 821px) {
  .hero-photo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-photo img { height: auto; }
}

@media (max-width: 820px) {
  .site-header { padding: .9rem 1.25rem; }
  .brand-logo { width: 70px; height: 70px; }
  .brand-link { width: 70px; height: 70px; }
  .header-label { padding: .4rem .8rem; font-size: .9rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; margin: 0 1rem; border-radius: 0; }
  .hero-copy { padding: 2.2rem 1.45rem 1.8rem; }
  h1 {
    max-width: none;
    font-size: clamp(1.72rem, 7.4vw, 2.05rem);
    line-height: 1.32;
  }
  h2 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  p { font-size: 1rem; }
  .hero-photo { min-height: 0; border-radius: 0; overflow: visible; }
  .hero-photo img { width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
  .case-section { padding: 3.5rem 1rem; }
  .case-dark { padding-bottom: 2.25rem; }
  .case-light { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .section-heading { padding: 0 .35rem; }
  .gallery-four, .story-grid { grid-template-columns: 1fr; }
  .photo-card { aspect-ratio: auto; }
  .photo-card img { height: auto; object-fit: contain; }
  .case-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .scene-photo { aspect-ratio: auto; }
  .scene-photo img { height: auto; object-fit: contain; }
  .story-card img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
  .story-card, .photo-card, .scene-photo { border-radius: 20px; }
  .closing { padding: 2.25rem 1.35rem 3.5rem; }
  .cta-group { flex-direction: column; }
  .btn, .back-link { width: 100%; }
  .mobile-line-float {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 20;
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: .82rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    background: #06c755;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
  }
}

@media (min-width: 821px) and (max-width: 1280px) {
  .site-header, .hero { margin-left: 2rem; margin-right: 2rem; }
}
