:root {
  --brand: #e1e425;
  --brand-hover: #d1d51c;
  --ink: #000000;
  --text: #000000;
  --muted: #000000;
  --mint: #ebfafa;
  --neutral: #f0f5f5;
  --catalog-background: #ffeecc;
  --aqua: #adebeb;
  --line: #dce5df;
  --white: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: #000000;
  background: #fff;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--brand);
  color: #000000;
}
body,
select,
input {
  caret-color: #000000;
}
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #bccac2;
  border-radius: 10px;
  border: 2px solid white;
}
a {
  color: #000000;
  text-decoration: none;
  text-underline-offset: 5px;
}
button,
input,
select {
  font: inherit;
  color: #000000;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
input,
select {
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    opacity 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
a:hover {
  color: #000000;
}
:focus-visible {
  outline: 3px solid #73771b;
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  color: #000000;
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.6;
  letter-spacing: 0.035em;
}
h2 {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.65;
  letter-spacing: 0.025em;
}
h3 {
  color: #000000;
  font-size: 1.25rem;
  font-weight: 500;
}
p {
  color: #000000;
}
.lucide {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.container {
  max-width: 1200px;
  width: calc(100% - 112px);
  margin-inline: auto;
}
.section {
  padding-block: 100px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 10px 20px;
  background: var(--brand);
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  background: #fffffffa;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #edf0eb;
}
.header-inner {
  max-width: 1440px;
  margin: auto;
  padding: 15px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000000;
}
.brand img {
  width: 61px;
  height: 61px;
  object-fit: cover;
  border-radius: 8px;
}
.brand > span {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
}
.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-top: 5px;
}
#main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
#main-nav > a,
.nav-parent > a {
  position: relative;
  font-size: 0.95rem;
  padding-block: 8px;
}
.nav-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  pointer-events: none;
  view-transition-name: nav-underline;
}
#main-nav .nav-store {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #000000;
  padding: 10px 19px;
  border-radius: 5px;
}
#main-nav .nav-store:hover {
  background: var(--brand-hover);
}
.menu-label {
  font-size: 0.875rem;
}
.menu-toggle {
  display: none;
  background: transparent;
  padding: 10px;
}
.hero {
  position: relative;
  min-height: 590px;
  background: var(--mint);
  overflow: hidden;
  isolation: isolate;
}
.hero-picture {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: -2;
}
.hero-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--mint),
    #ebfafaab 20%,
    transparent 60%
  );
}
.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
}
.hero-content {
  max-width: 1328px;
  margin: auto;
  padding: 93px 56px 108px;
}
.hero h1 {
  margin-bottom: 25px;
}
.hero-content p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 32px;
  color: #000000;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 23px;
  background: var(--brand);
  color: #000000;
  font-weight: 500;
  border-radius: 5px;
  min-height: 52px;
  line-height: 1.5;
}
.button:hover {
  background: var(--brand-hover);
  color: #000000;
}
.button-secondary {
  background: #ffffffd9;
  color: #000000;
  box-shadow: inset 0 0 0 1px #cedbd1;
}
.button-secondary:hover {
  background: #f5f9ef;
}
.hero-note {
  position: absolute;
  bottom: 27px;
  right: 50px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: #000000;
}
.small-sun {
  background: var(--brand);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 33px;
  border-bottom: 1px solid var(--line);
}
.quick-links > a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 28px;
}
.quick-links > a:first-child {
  padding-left: 0;
}
.quick-links > a + a {
  border-left: 1px solid var(--line);
}
.quick-links > a > .lucide:first-child {
  color: #000000;
  width: 32px;
  height: 32px;
}
.quick-links > a > .lucide:last-child {
  width: 17px;
  margin-left: auto;
}
.quick-links strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}
.quick-links span {
  font-size: 0.8rem;
  color: #000000;
}
.quick-links a:hover {
  opacity: 0.65;
}
.about-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-title h2 {
  margin-bottom: 24px;
}
.about-title p {
  max-width: 440px;
  margin-bottom: 0;
  line-height: 2;
}
.about-values {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.about-values > div {
  flex: 1;
}
.about-values .lucide {
  width: 34px;
  height: 34px;
  color: #000000;
  margin-bottom: 20px;
}
.about-values h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.about-values p {
  font-size: 0.9rem;
  line-height: 2;
  margin-bottom: 0;
}
.catalog-section {
  background: var(--catalog-background);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
  gap: 30px;
}
.section-heading h2 {
  margin-bottom: 12px;
}
.section-heading p {
  margin-bottom: 0;
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 0;
}
.text-link:hover {
  opacity: 0.6;
}
.text-link .lucide {
  width: 18px;
}
.catalog-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}
.catalog-art {
  padding: 38px;
  min-height: 390px;
  position: relative;
  background: var(--catalog-background);
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-art > img {
  height: 340px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 12px 22px #39504120;
  transition: opacity 0.3s ease;
}
.catalog-feature:hover .catalog-art > img {
  opacity: 0.8;
}
.catalog-copy {
  padding: 55px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.catalog-copy h3 {
  font-family: "Noto Serif TC", serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.catalog-copy p {
  line-height: 2;
}
.catalog-meta {
  color: #000000;
  font-size: 0.85rem;
  margin-bottom: 26px;
}
.store-invitation {
  display: flex;
  align-items: center;
  gap: 36px;
}
.store-symbol {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #f5f7cc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.store-symbol .lucide {
  width: 44px;
  height: 44px;
  color: #000000;
}
.store-invitation h2 {
  margin-bottom: 8px;
}
.store-invitation p {
  margin: 0;
}
.store-invitation > .button {
  margin-left: auto;
  white-space: nowrap;
}
.site-footer {
  padding: 45px 56px 20px;
  background: var(--mint);
}
.footer-top,
.footer-bottom {
  max-width: 1328px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.footer-brand span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 8px;
  font-weight: 400;
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  font-size: 0.9rem;
}
.footer-top nav a { white-space: nowrap; }
.back-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.footer-bottom {
  font-size: 0.75rem;
  color: #000000;
  border-top: 1px solid #d3e4dc;
  padding-top: 18px;
  margin-top: 36px;
}
.page-intro {
  padding-block: 52px 45px;
}
.breadcrumb {
  display: inline-block;
  font-size: 0.85rem;
  color: #000000;
  margin-bottom: 33px;
}
.page-intro h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.page-intro > p {
  margin: 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 100px;
}
.cover-wrap {
  position: relative;
  background: var(--catalog-background);
  padding: 25px;
  border-radius: 12px;
}
.cover-wrap img {
  height: 335px;
  width: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
.cover-wrap > .lucide {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--brand);
  box-sizing: content-box;
  padding: 12px;
  border-radius: 50%;
}
.catalog-tile:hover img {
  opacity: 0.7;
}
.tile-copy {
  padding-block: 22px;
}
.tile-copy h2 {
  font:
    500 1.2rem "Noto Sans TC",
    sans-serif;
  margin-bottom: 10px;
}
.tile-copy span {
  font-size: 0.85rem;
  color: #000000;
}
.store-search-section {
  padding-bottom: 100px;
}
.store-search {
  padding: 30px;
  background: var(--neutral);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: end;
  gap: 22px;
}
.store-search label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 9px;
}
input,
select {
  background: white;
  border: 1px solid #bdcbc2;
  border-radius: 5px;
  padding: 11px 13px;
  max-width: 100%;
  min-height: 50px;
}
input::placeholder {
  color: #000000;
}
.store-search select,
.store-search input {
  width: 100%;
}
.search-input {
  position: relative;
}
.search-input .lucide {
  position: absolute;
  left: 13px;
  top: 16px;
  width: 18px;
  height: 18px;
  color: #000000;
}
.search-input input {
  padding-left: 40px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px;
}
.empty-state > .lucide {
  width: 42px;
  height: 42px;
  color: #000000;
  margin: 0 auto 20px;
}
.empty-state h2 {
  font:
    500 1.4rem "Noto Sans TC",
    sans-serif;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 0.95rem;
}
[hidden] {
  display: none !important;
}
.store-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr auto;
  gap: 20px;
  align-items: center;
}
.store-row > div {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.9rem;
}
.store-row .lucide {
  color: #000000;
}
.store-row h2 {
  font:
    500 1.2rem "Noto Sans TC",
    sans-serif;
  margin: 0;
}
.store-row p {
  margin: 0;
  font-size: 0.9rem;
}
.store-detail {
  min-height: 65vh;
}
.store-detail dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  max-width: 650px;
  margin-bottom: 35px;
}
.store-detail dd {
  margin: 0;
  white-space: pre-line;
}
.reader-heading {
  padding-block: 35px;
}
.reader-heading .breadcrumb {
  margin-bottom: 20px;
}
.reader-heading h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.reader-heading p {
  margin: 0;
}
.reader-section {
  background: var(--catalog-background);
  padding: 30px 20px;
}
#book-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  min-height: 120px;
  margin: auto;
  overflow: hidden;
}
#book {
  margin: auto;
}
.book-page {
  background: white;
}
.book-page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#reader-status {
  text-align: center;
  font-size: 0.85rem;
  margin: 15px 0;
}
.reader-controls {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 50%;
  width: 46px;
  height: 46px;
}
.icon-button:hover:enabled {
  background: var(--brand-hover);
}
.reader-controls select {
  min-height: 44px;
  padding: 7px 10px;
  font-variant-numeric: tabular-nums;
}
.reader-controls .text-link {
  margin-left: 15px;
  font-size: 0.9rem;
}
.not-found {
  min-height: 60vh;
}
.not-found .button {
  margin-top: 28px;
}
@media (min-width: 1500px) {
  .hero-content {
    padding-left: 60px;
  }
  .hero {
    min-height: 650px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .header-inner {
    padding-inline: 32px;
  }
  #main-nav {
    gap: 24px;
  }
  .hero-content {
    padding-left: 40px;
  }
  .hero-picture {
    left: 20%;
  }
  .hero-picture::after {
    background: linear-gradient(
      90deg,
      var(--mint),
      #ebfafad4 27%,
      transparent 85%
    );
  }
  .quick-links > a {
    padding-inline: 15px;
    gap: 12px;
  }
  .quick-links strong {
    font-size: 0.9rem;
  }
  .quick-links span {
    font-size: 0.75rem;
  }
  .about-section {
    gap: 45px;
  }
  .about-values {
    gap: 20px;
  }
  .catalog-copy {
    padding: 35px;
  }
  .store-invitation {
    gap: 24px;
  }
  .store-symbol {
    width: 80px;
    height: 80px;
  }
  .store-invitation h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 60px;
  }
  .header-inner {
    padding: 10px 20px;
  }
  .brand img {
    width: 46px;
    height: 46px;
  }
  .brand > span {
    font-size: 1.25rem;
  }
  .brand small {
    font-size: 0.7rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  #main-nav.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  #main-nav > a,
.nav-parent > a {
    padding: 12px;
  }
  #main-nav .nav-store {
    justify-content: center;
    margin-top: 5px;
  }
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    padding: 42px 24px 25px;
    width: 100%;
    order: 0;
    margin: 0;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.7rem);
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .button {
    font-size: 0.85rem;
    padding: 12px 15px;
    min-height: 48px;
  }
  .hero-actions .lucide {
    width: 18px;
  }
  .hero-picture {
    position: relative;
    inset: auto;
    z-index: -1;
    order: 1;
    height: 290px;
    margin-top: -10px;
  }
  .hero-picture::after {
    background: linear-gradient(180deg, var(--mint), transparent 40%);
  }
  .hero-picture img {
    object-position: 65% 65%;
  }
  .hero-note {
    right: 22px;
    bottom: 18px;
    font-size: 0.75rem;
  }
  .quick-links {
    padding-block: 10px;
    grid-template-columns: 1fr;
  }
  .quick-links > a,
  .quick-links > a:first-child {
    padding: 20px 3px;
  }
  .quick-links > a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .quick-links > a {
    gap: 20px;
  }
  .quick-links strong {
    font-size: 1rem;
  }
  .quick-links span {
    font-size: 0.8rem;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-title p {
    max-width: none;
  }
  .about-values {
    gap: 28px;
  }
  .about-values p {
    font-size: 0.85rem;
  }
  .about-values h3 {
    font-size: 1rem;
  }
  .section-heading {
    align-items: start;
    gap: 15px;
    flex-direction: column;
    margin-bottom: 25px;
  }
  .section-heading h2 {
    font-size: 1.8rem;
  }
  .section-heading p {
    font-size: 0.9rem;
  }
  .catalog-feature {
    grid-template-columns: 1fr;
  }
  .catalog-art {
    padding: 25px;
    min-height: 320px;
  }
  .catalog-art > img {
    height: 300px;
  }
  .catalog-copy {
    padding: 28px;
  }
  .catalog-copy h3 {
    font-size: 1.5rem;
  }
  .catalog-copy p {
    font-size: 0.9rem;
  }
  .store-invitation {
    flex-wrap: wrap;
    gap: 22px;
  }
  .store-symbol {
    width: 64px;
    height: 64px;
  }
  .store-symbol .lucide {
    width: 30px;
    height: 30px;
  }
  .store-invitation > div:nth-child(2) {
    flex: 1;
  }
  .store-invitation h2 {
    font-size: 1.45rem;
  }
  .store-invitation p {
    font-size: 0.85rem;
  }
  .store-invitation > .button {
    margin: 0;
    width: 100%;
  }
  .site-footer {
    padding: 35px 20px 20px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 25px;
  }
  .footer-top nav {
    order: 2;
    width: 100%;
    gap: 25px;
  }
  .footer-brand {
    font-size: 1.3rem;
  }
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
  }
  .page-intro {
    padding-block: 32px 35px;
  }
  .page-intro h1 {
    font-size: 2rem;
  }
  .breadcrumb {
    margin-bottom: 25px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }
  .cover-wrap img {
    height: 360px;
  }
  .store-search {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }
  .store-search-section {
    padding-bottom: 40px;
  }
  .empty-state {
    padding: 50px 10px;
  }
  .empty-state p {
    font-size: 0.85rem;
  }
  .store-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .store-detail dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .store-detail dd {
    margin-bottom: 15px;
  }
  .reader-heading {
    padding-block: 25px;
  }
  .reader-heading h1 {
    font-size: 1.6rem;
  }
  .reader-section {
    padding: 20px 10px;
  }
  .reader-controls {
    gap: 10px;
  }
  .reader-controls .text-link {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

#reader-loading {
  max-width: 420px;
  margin: 25px auto;
  text-align: center;
}
#reader-progress {
  display: block;
  width: 100%;
  height: 12px;
  margin-block: 16px 24px;
  accent-color: var(--brand);
}
[data-catalog-gated][inert] {
  pointer-events: none;
}
.reader-controls[inert] {
  opacity: 0.4;
}
#book-stage[inert] {
  visibility: hidden;
}

#catalog-zoom {
  width: 100%;
  scroll-margin-top: 100px;
}
.zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
}
#zoom-level {
  min-width: 55px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.zoom-hint {
  text-align: center;
  margin: 6px 0 16px;
  font-size: 0.875rem;
}
#zoom-viewport {
  width: 100%;
  height: min(70vh, 760px);
  min-height: 280px;
  overflow: auto;
  background: var(--catalog-background);
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
#zoom-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}
#zoom-spread {
  display: flex;
  margin-inline: auto;
}
#zoom-spread img {
  flex-shrink: 0;
  max-width: none;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 760px) {
  .zoom-toolbar {
    gap: 8px;
  }
  .zoom-toolbar .button {
    padding: 10px 12px;
    font-size: 0.875rem;
  }
}

/* Shared navigation keeps its position while the page content changes. */
@view-transition {
  navigation: auto;
}
main {
  view-transition-name: page-content;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
::view-transition-old(page-content) {
  animation: page-fade-out 300ms ease-out both;
}
::view-transition-new(page-content) {
  animation: page-fade-in 500ms var(--ease) 300ms both;
}
@keyframes page-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page-content),
  ::view-transition-new(page-content) {
    animation: none;
  }
}
.about-intro {
  padding-bottom: 35px;
}
.about-photo {
  max-width: 1200px;
  width: calc(100% - 112px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 14px;
}
.about-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 63%;
}
.about-destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 90px;
}
.about-destinations > a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: var(--mint);
  border-radius: 12px;
}
.about-destinations > a:nth-child(2) {
  background: #f7f8d5;
}
.about-destinations > a > .lucide:last-child {
  margin-left: auto;
}
.store-results-count {
  font-size: 0.875rem;
  margin: 24px 0 8px;
}
.branch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.store-list-item {
  border-bottom: 1px solid var(--line);
}
.branch-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.8fr) minmax(
      190px,
      0.9fr
    );
  gap: 26px;
  padding: 32px 12px;
  align-items: center;
  transition: background-color 0.25s ease;
}
.branch-row:hover {
  background: #f7faf8;
}
.branch-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.branch-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.branch-icon .lucide {
  width: 30px;
  height: 30px;
}
.tone-sky {
  background: #dcecf9;
}
.tone-rose {
  background: #fae3e3;
}
.tone-yellow {
  background: #f5f5bd;
}
.tone-mint {
  background: #e0efcf;
}
.tone-peach {
  background: #fbe7d3;
}
.tone-aqua {
  background: #dcf3f0;
}
.tone-lavender {
  background: #e6e5f7;
}
.branch-district {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
}
.branch-row h2 {
  font:
    500 1.35rem "Noto Sans TC",
    sans-serif;
  margin: 0;
}
.branch-row h2 a:hover {
  text-decoration: underline;
}
.branch-location p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.branch-location p:last-child {
  margin-bottom: 0;
}
.branch-location .lucide {
  width: 18px;
  height: 18px;
  margin-top: 5px;
}
.branch-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.branch-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.branch-phone .lucide {
  width: 18px;
  height: 18px;
}
.branch-detail-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #f5f5bd;
  padding: 9px 13px;
  border-radius: 5px;
  font-size: 0.875rem;
}
.branch-detail-link:hover {
  background: var(--brand);
}
.branch-detail-link .lucide {
  width: 17px;
  height: 17px;
}
.branch-detail-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 40px;
}
.branch-detail-heading .branch-icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
}
.branch-detail-heading .branch-icon .lucide {
  width: 40px;
  height: 40px;
}
.branch-detail-heading h1 {
  margin: 0 0 8px;
}
.branch-detail-heading p {
  margin: 0;
}
.branch-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) 1.4fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 40px;
}
.branch-information h2 {
  font:
    500 1.35rem "Noto Sans TC",
    sans-serif;
  margin-bottom: 25px;
}
.store-detail .branch-information dl {
  display: block;
  margin: 0 0 28px;
}
.branch-information dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.branch-information dt .lucide {
  width: 17px;
  height: 17px;
}
.store-detail .branch-information dd {
  margin: 0 0 24px 25px;
  font-size: 1rem;
}
.branch-information dd a {
  text-decoration: underline;
}
.back-to-stores {
  display: flex;
  width: fit-content;
  margin-top: 16px;
}
.branch-map iframe {
  border: 0;
  border-radius: 12px;
  background: var(--neutral);
  width: 100%;
  height: 460px;
  display: block;
}
.branch-map p {
  font-size: 0.875rem;
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .about-photo {
    width: calc(100% - 64px);
  }
  .branch-row {
    grid-template-columns: minmax(160px, 0.8fr) 1.4fr;
    gap: 18px;
  }
  .branch-actions {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .branch-detail-layout {
    gap: 28px;
  }
}
@media (max-width: 760px) {
  .about-photo {
    width: calc(100% - 40px);
  }
  .about-photo img {
    height: 240px;
  }
  .about-destinations {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 60px;
  }
  .about-destinations > a {
    padding: 22px;
  }
  .branch-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 0;
  }
  .branch-actions {
    grid-column: 1;
    flex-wrap: wrap;
    gap: 14px;
  }
  .branch-identity {
    gap: 16px;
  }
  .branch-location p {
    font-size: 0.875rem;
  }
  .branch-row h2 {
    font-size: 1.3rem;
  }
  .branch-detail-heading {
    gap: 18px;
    margin-bottom: 32px;
  }
  .branch-detail-heading .branch-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
  .branch-detail-heading h1 {
    font-size: 2rem;
  }
  .branch-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .branch-map iframe {
    height: 350px;
  }
}

.store-detail .branch-information dd {
  white-space: normal;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  ::view-transition-group(root),
  ::view-transition-group(page-content) {
    animation: none;
  }
}

::view-transition-group(page-content) {
  animation: none;
}
::view-transition-old(page-content),
::view-transition-new(page-content) {
  height: auto;
}
::view-transition-group(nav-underline) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(nav-underline),
::view-transition-new(nav-underline) {
  animation: none;
  mix-blend-mode: normal;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(nav-underline) {
    animation: none;
  }
}

.services-hero {
  background: #f5f8df;
  overflow: hidden;
}
.services-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding-block: 60px 80px;
}
.services-hero-copy .breadcrumb {
  margin-bottom: 30px;
}
.services-hero-copy h1 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  margin-bottom: 22px;
}
.services-hero-copy p {
  line-height: 2;
  margin-bottom: 30px;
}
.services-visual {
  position: relative;
  padding: 34px 45px 55px;
  animation: service-hero-enter 850ms var(--ease);
}
.services-visual-inner {
  position: relative;

}
.services-main-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px 90px 30px 30px;
}
.services-photo-link {
  position: absolute;
  width: 43%;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 30px #37432a16;
}
.services-photo-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 7px;
}
.services-photo-link span {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.8rem;
  padding-top: 7px;
}
.services-photo-link .lucide {
  width: 16px;
  height: 16px;
}
.services-photo-monitor {
  left: -35px;
  bottom: -28px;
}
.services-photo-skincare {
  right: -35px;
  top: -28px;
}
.services-photo-link:hover {
  opacity: 0.8;
}
.service-jump {
  position: sticky;
  top: 92px;
  background: #fffffff5;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-jump > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
}
.service-jump a {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 18px 4px;
  border-bottom: 3px solid transparent;
  font-size: 0.9375rem;
}
.service-jump a[aria-current] {
  border-bottom-color: var(--brand);
}
.service-jump .lucide {
  width: 20px;
  height: 20px;
}
.service-section {
  padding-block: 80px;
  scroll-margin-top: 170px;
}
.service-section:nth-child(even) {
  background: #f0f8f5;
}
.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.service-section:nth-child(even) .service-image {
  order: 2;
}
.service-image {
  overflow: hidden;
  border-radius: 14px;
}
.service-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.service-image.is-revealed {
  animation: service-photo-reveal 850ms var(--ease);
}
.services-hero-copy,
.service-copy.is-revealed {
  animation: service-copy-reveal 700ms var(--ease);
}
.service-copy {
  max-width: 460px;
}
.service-icon {
  width: 56px;
  height: 56px;
  background: #eff1bb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-section:nth-child(even) .service-icon {
  background: #dcefe6;
}
.service-icon .lucide {
  width: 28px;
  height: 28px;
}
.service-copy h2 {
  margin-bottom: 20px;
}
.service-copy p {
  line-height: 2;
  margin-bottom: 18px;
}
.service-contact {
  padding-block: 80px;
  text-align: center;
}
.service-contact h2 {
  margin-bottom: 18px;
}
.service-contact p {
  margin-bottom: 28px;
}
@keyframes service-hero-enter {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}
@keyframes service-photo-reveal {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}
@keyframes service-copy-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
  .services-hero-inner {
    gap: 35px;
  }
  .services-visual {
    padding: 25px 28px 40px;
  }
  .services-photo-monitor {
    left: -22px;
  }
  .services-photo-skincare {
    right: -22px;
  }
  .service-section-inner {
    gap: 45px;
  }
}
@media (max-width: 760px) {
  .services-hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 30px 55px;
  }
  .services-hero-copy h1 {
    font-size: 2.15rem;
  }
  .services-hero-copy p {
    font-size: 0.9375rem;
  }
  .services-visual {
    width: min(100%, 440px);
    margin-inline: auto;
    padding: 30px 35px 50px;
  }
  .services-photo-link span {
    font-size: 0.75rem;
  }
  .services-main-photo {
    border-radius: 22px 60px 22px 22px;
  }
  .service-jump {
    top: 67px;
  }
  .service-jump > div {
    gap: 24px;
  }
  .service-jump a {
    font-size: 0.875rem;
    padding-block: 14px;
  }
  .service-section {
    padding-block: 50px;
    scroll-margin-top: 135px;
  }
  .service-section-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .service-section:nth-child(even) .service-image {
    order: 0;
  }
  .service-copy {
    max-width: none;
  }
  .service-icon {
    margin-bottom: 16px;
  }
  .service-contact {
    padding-block: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .services-visual,
  .services-visual-inner,
  .services-hero-copy,
  .service-copy.is-revealed,
  .service-image.is-revealed {
    animation: none;
  }
}

/* About submenu keeps the parent page available on mouse, touch and keyboard. */
.nav-group { position: relative; }
.nav-parent { display: flex; align-items: center; gap: 2px; }
.nav-parent > a { position: relative; }
.nav-submenu { position: absolute; z-index: 20; top: 100%; left: -13px; width: max-content; min-width: 0; padding: 0; background: white; border-radius: 12px; box-shadow: 0 12px 32px #00000014; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.nav-submenu a { display: block; white-space: nowrap; font-size: 0.95rem; padding: 13px; border-radius: 8px; }
.nav-submenu a:hover, .nav-submenu a[aria-current] { background: #f5f8df; }
.nav-group.is-open .nav-submenu { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.careers-content, .ai-pharmacist-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-bottom: 90px; }
.careers-content h2, .ai-pharmacist-content h2 { margin-bottom: 22px; }
.careers-content p, .ai-pharmacist-content p { line-height: 2; margin-bottom: 22px; }
.careers-notice { background: #f5f8df; padding: 40px; border-radius: 14px; }
.careers-notice > .lucide { width: 40px; height: 40px; margin-bottom: 28px; }
.ai-pharmacist-content .text-link { display: flex; width: fit-content; margin-top: 28px; }
.ai-qr { margin: 0; text-align: center; background: #f0f8f5; padding: 32px; border-radius: 14px; }
.ai-qr img { width: min(100%, 410px); height: auto; display: block; margin-inline: auto; }
.ai-qr figcaption { margin-top: 20px; }
.ai-qr .text-link { margin-inline: auto; }
.ai-pharmacist-row .branch-icon { background: #dcefe6; }
@media (max-width: 760px) {
  .nav-parent { justify-content: space-between; }
  .nav-parent > a { flex: 1; }
  .nav-submenu { position: static; display: none; box-shadow: none; min-width: 0; padding: 0; margin-left: 5px; }
  .nav-group.is-open .nav-submenu { display: block; }
  .careers-content, .ai-pharmacist-content { grid-template-columns: 1fr; gap: 32px; padding-bottom: 55px; }
  .careers-notice, .ai-qr { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-submenu { transition: none; }
}

.stores-intro { padding-block: 32px 28px; }
.stores-intro .breadcrumb { margin-bottom: 20px; }

.scan-section { padding-bottom: 48px; margin-bottom: 48px; }
.scan-section + .scan-section { padding-top: 48px; border-top: 1px solid var(--line); }
.qr-pending { min-height: 300px; display: grid; place-content: center; justify-items: center; gap: 24px; }
.qr-pending > .lucide { width: 64px; height: 64px; }
.qr-pending p { margin: 0; }
.scan-return { padding-bottom: 70px; }

.scan-mobile { display: none; }
html.device-phone .scan-mobile { display: block; }
html.device-phone a.scan-mobile { display: inline-flex; }
html.device-phone .scan-desktop { display: none; }
html.device-phone .scan-section { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 760px) {
  html:not(.device-desktop) .scan-mobile { display: block; }
  html:not(.device-desktop) a.scan-mobile { display: inline-flex; }
  html:not(.device-desktop) .scan-desktop { display: none; }
}

#main-nav .nav-label { display: inline-block; transition: transform 200ms var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #main-nav a:hover > .nav-label { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  #main-nav .nav-label { transition: none; transform: none; }
}
