* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: system-ui, "PingFang TC", "Noto Sans TC", sans-serif;
  color: #343f35;
  background: #e9e4d8;
  --muted: #5e6253;
  --line: #d7cfbe;
}
html[lang="zh-Hant"] [data-copy="en"],
html[lang="en"] [data-copy="zh-Hant"],
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  padding: clamp(12px, 4vw, 44px);
  background: radial-gradient(ellipse at 72% 0%, #f8f3e8 0, transparent 54%), #e9e4d8;
}
.card {
  position: relative;
  width: min(100%, 660px);
  margin-inline: auto;
  padding: clamp(22px, 6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 23px;
  background: linear-gradient(145deg, #fffcf4, #f7f2e7);
  box-shadow: 0 15px 55px #42372212;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 clamp(22px, 6vw, 48px) auto;
  height: 3px;
  background: linear-gradient(90deg, #73815e, #c0a573 48%, #ae938b 76%, #859477);
}
.profile { padding-top: 2px; }
.languages {
  display: flex;
  justify-self: end;
  width: max-content;
  margin: 0 0 21px auto;
  padding: 3px;
  border: 1px solid #d5cdbb;
  border-radius: 100px;
  background: #eae5d8;
}
.languages button {
  min-width: 47px;
  min-height: 38px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #535448;
  font: inherit;
  cursor: pointer;
}
.languages button[aria-pressed="true"] {
  background: #fffdf6;
  color: #344a36;
  box-shadow: 0 1px 4px #4b46331c;
}
.identity { margin-bottom: 15px; }
.identity img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  mix-blend-mode: darken;
}
h1 {
  margin: 0;
  color: #344f40;
  font: 400 clamp(2.125rem, 9vw, 3.75rem)/1.12 "Palatino Linotype", Palatino, "Book Antiqua", P052, Georgia, serif;
  letter-spacing: .005em;
}
.company-title {
  font-family: inherit;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 650;
  line-height: 1.25;
}
.brand-name {
  margin: 7px 0 0;
  color: #4d5548;
  font: 400 clamp(1rem, 3vw, 1.375rem)/1.3 "Palatino Linotype", Palatino, Georgia, serif;
}
.intro { margin: 24px 0 0; color: var(--muted); line-height: 1.8; }
.featured, .contacts { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 5vw, 1.75rem); font-weight: 550; color: #405741; }
.product-list { display: grid; justify-content: center; gap: 12px; }
@media (min-width: 520px) {
  .product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 13px); }
}
@media (max-width: 519px) {
  .product-list { grid-template-columns: minmax(0, 215px); }
}
.product {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf6;
}
.product-gallery { min-width: 0; background: #eeeee4; }
.product-slides { overflow: hidden; }
.product-slide { aspect-ratio: 1; }
.product-slide a, .product-slide img { display: block; width: 100%; height: 100%; }
.product-slide a:hover { opacity: .9; }
.product-slide a:focus-visible { outline: 2px solid #477152; outline-offset: -3px; }
.product-slide img { object-fit: contain; }
.product-mockup {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("product-mockups.jpg");
  background-size: 300% 200%;
  background-position: var(--mock-column) var(--mock-row);
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 6px;
}
.gallery-controls button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #345740;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.gallery-controls button:hover { background: #e3e8d9; }
.gallery-count { color: var(--muted); font-size: .875rem; }
.gallery-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 520px) and (max-width: 630px) {
  .gallery-controls { gap: 0; padding-inline: 2px; }
  .gallery-controls button { padding-inline: 3px; font-size: .75rem; }
  .gallery-count { font-size: .75rem; }
}
.back-to-products { display: inline-block; margin-bottom: 14px; color: #345740; text-underline-offset: .2em; }
.product-detail h1 { font-size: clamp(1.85rem, 7vw, 2.85rem); }
.detail-gallery { width: min(100%, 340px); margin: 20px 0 0; }
.detail-gallery .product-gallery { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.detail-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.detail-section { margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-section p { margin: 0; color: var(--muted); line-height: 1.6; }
.contacts { --contact-accent: #395e49; --contact-tint: #e9efe3; }
.contacts h2 { margin-bottom: 18px; }
.contact {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
button:focus-visible, .contact:focus-visible {
  outline: 2px solid #477152;
  outline-offset: 3px;
}
.tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
}
.tile svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-copy { min-width: 0; }
.contact strong, .contact small { display: block; }
.contact strong { font-size: 1.05rem; font-weight: 600; }
.contact small { margin-top: 3px; color: var(--muted); font-size: .875rem; line-height: 1.35; }
summary.contact { cursor: pointer; list-style: none; }
summary.contact::-webkit-details-marker { display: none; }
.expand { display: grid; place-items: center; width: 30px; height: 30px; font-size: 1.25rem; line-height: 1; }
.expand::before { content: "+"; }
details[open] .expand::before { content: "−"; }

.messaging-options {
  --messaging-card-height: 166px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}
.messaging-options > * {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf6;
}
.messaging-options .contact {
  position: relative;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 10px;
  min-height: var(--messaging-card-height);
  padding: 13px clamp(8px, 2.5vw, 14px);
}
.messaging-options > .contact { min-height: calc(var(--messaging-card-height) + 2px); }
.messaging-options summary { border-radius: inherit; }
.messaging-options .contact:hover { background: #f2f3e9; }
.messaging-options strong { font-size: 1rem; line-height: 1.3; }
.messaging-options .tile { color: var(--contact-accent); background: var(--contact-tint); }
.line-official .tile { font-size: .75rem; font-weight: 750; }
.messaging-options .expand { position: absolute; inset: 15px 5px auto auto; color: var(--contact-accent); }
@media (max-width: 580px) {
  .messaging-options { --messaging-card-height: 132px; }
  .messaging-options strong { font-size: .875rem; overflow-wrap: anywhere; }
  .messaging-options .contact small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .messaging-options .expand { width: 22px; inset-inline-end: 2px; }
  .messaging-options details[open] { grid-column: 1 / -1; }
  .messaging-options details[open] summary { min-height: auto; flex-direction: row; align-items: center; }
  .messaging-options details[open] .expand { inset-inline-end: 10px; }
}

.direct-contact {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 17px;
  border-block: 1px solid var(--line);
}
.direct-contact .contact { gap: 10px; min-height: 62px; padding: 9px 4px; }
.direct-contact .contact-copy { display: flex; flex-direction: column-reverse; }
.direct-contact .tile { width: 27px; height: 35px; color: var(--contact-accent); }
.direct-contact .tile svg { width: 20px; height: 20px; }
.direct-contact strong { font-size: .94rem; overflow-wrap: anywhere; }
.direct-contact small { margin: 0 0 3px; }
.direct-contact .contact:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.direct-contact .phone { border-top: 1px solid var(--line); }
@media (min-width: 510px) {
  .direct-contact { grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); }
  .direct-contact .phone { border-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
}

.qr-panel { padding: 14px 10px; color: var(--muted); text-align: center; }
.qr-panel img { display: block; margin: 0 auto; width: min(100%, 225px); height: auto; border-radius: 8px; }
.qr-panel p { margin: 8px auto 0; max-width: 34ch; font-size: .875rem; line-height: 1.55; }
.line-official .qr-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  justify-content: center;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--contact-tint);
  color: var(--contact-accent);
  font-weight: 600;
  text-decoration: none;
}
.line-official .qr-panel a:hover { text-decoration: underline; }
.line-official .qr-panel a:focus-visible { outline: 2px solid #477152; outline-offset: 3px; }
