:root {
  --ink: #383737;
  --paper: #f2efe7;
  --white: #fffdf7;
  --muted: #6e6a61;
  --line: rgba(25, 25, 23, 0.18);
  --teal: #1aa696;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.65;
}

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.mag-header {
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  padding: 22px 3vw;
  align-items: center;
  gap: 38px;
  transition: height 0.35s ease, padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.mag-logo {
  color: #058d9c;
  font-family: var(--sans);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: font-size 0.35s ease, letter-spacing 0.35s ease, color 0.35s ease;
}

.mag-header.is-scrolled {
  position: fixed;
  height: 45px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mag-header.is-scrolled .mag-logo {
  font-size: 20px;
}

.mag-nav {
  position: absolute;
  z-index: 1000;
  top: 0;
  right: 3vw;
  display: flex;
  height: clamp(52px, 5vw, 108px);
  align-items: center;
  gap: 28px;
}

.mag-nav a {
  color: #000;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.mag-nav a:hover {
  color: #2a91ff;
}

.mag-header.is-scrolled ~ .mag-nav {
  position: fixed;
  z-index: 1002;
  top: 0;
  right: 3vw;
  bottom: auto;
  display: flex;
  height: 45px;
  align-items: center;
}

.mag-header.is-scrolled ~ .mag-nav a {
  font-size: 16px;
  text-shadow: none;
}

.story-main {
  min-height: 70vh;
}

.story-hero {
  padding: clamp(72px, 8vw, 118px) clamp(18px, 7vw, 112px) clamp(28px, 3vw, 44px);
  background: var(--white);
  text-align: center;
}

.breadcrumb ol {
  display: flex;
  margin: 0 0 44px;
  padding: 0;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
}

.story-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.story-hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.story-hero-copy {
  display: grid;
  max-width: 1180px;
  margin-top: clamp(40px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
}

.story-hero-copy > p {
  max-width: 720px;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(19px, 2vw, 29px);
  line-height: 1.75;
}

.story-order-note {
  padding: 20px 0 0;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
}

.story-library {
  padding: clamp(24px, 3vw, 44px) clamp(18px, 5vw, 80px) clamp(80px, 10vw, 140px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.story-tools {
  display: grid;
  margin-bottom: clamp(44px, 6vw, 76px);
  grid-template-columns: minmax(210px, 0.62fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.story-field {
  display: grid;
  gap: 8px;
}

.story-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.story-field input,
.story-field select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 0;
}

.story-field input:focus-visible,
.story-field select:focus-visible,
.story-clear:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(26, 166, 150, 0.36);
  outline-offset: 3px;
}

.story-clear {
  height: 54px;
  padding: 0 21px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.story-result-bar {
  display: flex;
  margin: -34px 0 28px;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 96px) clamp(22px, 3vw, 48px);
}

.story-card[hidden] {
  display: none;
}

.story-card {
  min-width: 0;
  --story-delay: 0s;
}

.story-motion-ready .story-card {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.75, 0.22, 1) var(--story-delay),
    transform 1.2s cubic-bezier(0.22, 0.75, 0.22, 1) var(--story-delay);
  will-change: opacity, transform;
}

.story-motion-ready .story-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-image {
  display: block;
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72) 0 18%, transparent 58%),
    linear-gradient(145deg, #e8dfd2, #f5efe7);
}

.story-card:nth-child(4n + 2) .story-image {
  background: linear-gradient(145deg, #dbe7f1, #eef4f8);
}

.story-card:nth-child(4n + 3) .story-image {
  background: linear-gradient(145deg, #ecdede, #f8eeee);
}

.story-card:nth-child(4n) .story-image {
  background: linear-gradient(145deg, #dce7dc, #eef4e9);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.65s cubic-bezier(0.22, 0.75, 0.22, 1);
}

.story-card:hover .story-image img {
  transform: scale(1.035);
}

.story-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.story-author {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.story-card h2 {
  min-height: 3.05em;
  margin: 9px 0 0;
  font-family: var(--sans);
  font-size: clamp(22px, 1.25vw, 26px);
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.48;
}

.story-summary {
  display: -webkit-box;
  min-height: 5.8em;
  margin: 20px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-more {
  display: inline-flex;
  margin-top: 26px;
  padding-bottom: 4px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.story-empty {
  margin: 50px 0 0;
  padding: 36px;
  background: var(--paper);
  text-align: center;
}

footer {
  padding: 5vh 5vw;
  color: #fff;
  background: var(--teal);
}

footer ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

footer li {
  text-align: center;
}

footer .dataUpdated {
  width: 100%;
  margin: 2.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (min-width: 641px) {
  .story-hero,
  .story-library {
    padding-right: 8vw;
    padding-left: 8vw;
  }
}

@media (min-width: 901px) {
  .mag-header {
    height: clamp(76px, 7.6vw, 112px);
    padding-top: 0;
    padding-bottom: 0;
  }

  .mag-nav,
  .mag-header.is-scrolled ~ .mag-nav {
    top: 0;
    bottom: auto;
    height: clamp(76px, 7.6vw, 112px);
    align-items: center;
  }

  .mag-header.is-scrolled ~ .mag-nav {
    height: 45px;
  }

  .mag-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    line-height: 1.2;
  }

  .story-card:nth-child(3n + 2) {
    --story-delay: 0.2s;
  }

  .story-card:nth-child(3n + 3) {
    --story-delay: 0.4s;
  }
}

@media (max-width: 900px) {
  .story-hero-copy,
  .story-tools {
    grid-template-columns: 1fr 1fr;
  }

  .story-clear {
    grid-column: 1 / -1;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .mag-header {
    height: 70px;
    padding: 0 5vw;
    justify-content: center;
  }

  .mag-logo {
    font-size: 28px;
  }

  .mag-nav,
  .mag-header.is-scrolled ~ .mag-nav {
    position: absolute;
    top: 70px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 52px;
    padding: 0 4vw;
    justify-content: center;
    gap: clamp(16px, 3vw, 28px);
    background: rgba(255, 255, 255, 0.96);
  }

  .mag-header.is-scrolled {
    height: 52px;
    padding: 0 5vw;
  }

  .mag-header.is-scrolled .mag-logo {
    font-size: 22px;
  }

  .mag-header.is-scrolled ~ .mag-nav {
    position: fixed;
    top: 52px;
  }

  .mag-nav a,
  .mag-header.is-scrolled ~ .mag-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .story-card:nth-child(2n) {
    --story-delay: 0.2s;
  }
}

@media (max-width: 640px) {
  .mag-header {
    padding: 22px 6vw;
    gap: 20px;
  }

  .mag-logo {
    font-size: 28px;
  }

  .mag-header.is-scrolled {
    height: 45px;
    padding: 0 5vw;
  }

  .mag-header.is-scrolled .mag-logo {
    font-size: 21px;
    letter-spacing: 0.05em;
  }

  .mag-nav,
  .mag-header.is-scrolled ~ .mag-nav {
    position: fixed;
    z-index: 9999;
    top: auto;
    right: 0;
    bottom: 6.5vh;
    left: 0;
    display: flex !important;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  }

  .mag-nav a,
  .mag-header.is-scrolled ~ .mag-nav a {
    display: flex;
    width: 20%;
    height: 56px;
    align-items: center;
    justify-content: center;
    color: #000;
    border-right: 1px dotted rgba(0, 0, 0, 0.25);
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    text-shadow: none;
  }

  .mag-nav a:last-child {
    border-right: 0;
  }

  .story-hero {
    padding-top: 112px;
    background: var(--white);
  }

  .breadcrumb ol {
    margin-bottom: 30px;
  }

  .story-hero-copy,
  .story-tools,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-order-note {
    margin-top: 8px;
  }

  .story-result-bar {
    margin-top: -20px;
  }

  .story-card h2,
  .story-summary {
    min-height: 0;
  }

  footer {
    padding: 5vh 3vw 8vh;
  }

  footer ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }

  .story-motion-ready .story-card {
    opacity: 1;
    transform: none;
    transition-delay: 0s !important;
  }
}

@media screen and (max-width: 575px) {
    #socail_icon_box a.w100 img {
      display: none!important;
      
    }
  }
