:root {
  --red: #a8060d;
  --navy: #142d53;
  --ink: #231f20;
  --muted: #c1c6c9;
  --page: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.section-shell,
.header-inner,
.footer-inner {
  width: min(1182px, calc(100% - 98px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 112px;
  color: #fff;
  background: var(--red);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  width: 90px;
  flex: 0 0 auto;
}

.brand img {
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 4vw, 58px);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding-block: 10px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: #fff;
  content: "";
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .2s ease, transform .2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.current::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 418;
  overflow: hidden;
}

.hero img {
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
}

.intro {
  min-height: 415px;
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 47px;
  align-items: start;
  padding-top: 50px;
}

.intro-copy {
  padding: 61px 0 0 29px;
}

.intro-copy h1 {
  margin-bottom: 15px;
}

.intro-copy p {
  max-width: 525px;
  margin-bottom: 0;
  line-height: 1.34;
}

.intro-image {
  width: 580px;
  height: 300px;
  overflow: hidden;
}

.intro-image img,
.product-grid img,
.expert-image img,
.article-card img {
  height: 100%;
  object-fit: cover;
}

.products {
  padding-top: 0;
}

.products > h2 {
  margin-bottom: 29px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}

.image-link,
.image-link picture {
  display: block;
  height: 420px;
  overflow: hidden;
}

.image-link img {
  transition: transform .35s ease;
}

.image-link:hover img,
.image-link:focus-visible img {
  transform: scale(1.015);
}

.expert {
  min-height: 418px;
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 47px;
  align-items: start;
  padding-top: 50px;
}

.expert-copy {
  padding: 61px 0 0 29px;
}

.expert-copy h2 {
  margin-bottom: 16px;
}

.expert-copy p {
  max-width: 525px;
  margin-bottom: 0;
}

.expert-image {
  width: 580px;
  height: 300px;
  overflow: hidden;
}

.faq-cta {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 44px 20px 48px;
  color: #fff;
  text-align: center;
  background: linear-gradient(105deg, #9f000a 0%, #c51018 47%, #8d0009 100%);
  border-top: 1px solid rgba(255, 255, 255, .85);
}

.faq-cta h2 {
  margin-bottom: 27px;
}

.faq-cta p {
  margin-bottom: 20px;
}

.outline-button {
  min-width: 190px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid currentColor;
  border-radius: 31px;
  font-size: 18px;
  font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}

.outline-button.light {
  color: #fff;
}

.outline-button.light:hover,
.outline-button.light:focus-visible {
  color: var(--red);
  background: #fff;
}

.articles {
  min-height: 873px;
  padding-top: 42px;
  background: #fff;
}

.articles h2 {
  margin-bottom: 29px;
  text-align: center;
}

.article-window {
  overflow: hidden;
}

.article-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
  transition: transform .45s ease;
}

.article-card {
  min-width: 0;
}

.article-card picture {
  height: 381px;
  display: block;
  overflow: hidden;
}

.article-card h3 {
  margin: 18px 27px 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
}

.article-card p {
  margin: 0 27px;
  line-height: 1.45;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 21px;
  margin-top: 68px;
}

.slider-dots button {
  width: 39px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--muted);
  cursor: pointer;
}

.slider-dots button.active {
  background: #2c2c2c;
}

.mobile-more {
  display: none;
}

.site-footer {
  min-height: 269px;
  color: #fff;
  background: var(--navy);
}

.faq-page {
  min-height: 1429px;
  background: #fff;
}

.faq-list {
  padding: 51px 50px 66px;
}

.faq-list h1 {
  margin: 0 0 32px;
  font-size: 30px;
  line-height: 1.45;
}

.faq-list details {
  min-height: 156px;
  padding: 34px 50px 25px;
  border-bottom: 1px solid #b9b9b9;
}

.faq-list summary {
  position: relative;
  padding: 0 54px 0 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 18px;
  height: 18px;
  content: "";
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  text-align: center;
  transform: translateY(-70%) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(-70%) rotate(45deg);
}

.faq-list details > p {
  display: block !important;
  max-width: 850px;
  margin: 17px 54px 0 0;
  line-height: 1.55;
}

.footer-inner {
  min-height: 269px;
  display: grid;
  grid-template-columns: minmax(0, 598px) 1fr;
  gap: 80px;
  padding-top: 44px;
}

.contact h2 {
  margin-bottom: 11px;
  font-size: 20px;
}

.contact p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.62;
}

.contact a:hover,
.contact a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 42px;
  padding-top: 2px;
  font-size: 16px;
  white-space: nowrap;
}

.catalog-page {
  min-height: 580px;
  padding: 79px 49px 95px;
}

.catalog-page > h1 {
  margin-bottom: 66px;
  font-size: 30px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 0;
}

.catalog-item {
  width: 180px;
  text-align: center;
}

.catalog-item img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  transition: transform .25s ease;
}

.catalog-item:hover img,
.catalog-item:focus-visible img {
  transform: translateY(-4px);
}

.catalog-item h2 {
  min-height: 67px;
  margin-top: 0;
  padding: 0 10px;
  font-size: 18px;
  line-height: 1.23;
  font-weight: 400;
}

.product-page {
  min-height: 1280px;
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 74px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.product-main-image {
  width: 580px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f6f6f6;
}

.product-main-image img {
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.product-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.product-thumb.active {
  border-color: var(--red);
}

.product-thumb img {
  height: 100%;
  object-fit: cover;
}

.product-info {
  min-width: 0;
  padding-top: 15px;
}

.product-info h1 {
  min-height: 48px;
  font-size: 30px;
  line-height: 1.6;
}

.product-subtitle {
  min-height: 48px;
  margin-bottom: 22px;
  font-size: 30px;
  font-weight: 600;
}

.product-info hr {
  margin: 0 -12px 12px;
  border: 0;
  border-top: 1px solid #aaa;
}

.product-info h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 25px;
  margin-bottom: 56px;
}

.store {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.store.manning {
  background: #f58216;
}

.store.manning strong {
  margin-left: 8px;
  font-size: 34px;
}

.store.watsons {
  background: #009999;
}

.store.wellcome {
  background: #e30046;
}

.store.lungfung {
  color: #fff;
  background: #5d2a86;
}

.product-facts p {
  margin-bottom: 42px;
  font-size: 18px;
  line-height: 1.5;
}

.product-facts small {
  font-size: 13px;
}

.contact-page {
  min-height: 703px;
  padding: 42px 20px 70px;
  text-align: center;
}

.contact-page h1 {
  margin-bottom: 42px;
  font-size: 30px;
}

.contact-intro {
  max-width: 660px;
  margin: 0 auto 44px;
  line-height: 1.4;
}

.contact-intro a,
.legal-page a {
  color: var(--red);
  text-decoration: underline;
}

.contact-method {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 40px;
  font-size: 18px;
}

.contact-method strong {
  margin: 10px 0 1px;
  font-size: 20px;
}

.contact-icon {
  position: relative;
  width: 100px;
  height: 100px;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.phone-icon::before {
  position: absolute;
  top: 22px;
  left: 31px;
  width: 32px;
  height: 52px;
  border: 3px solid var(--ink);
  border-radius: 3px;
  content: "";
}

.phone-icon::after {
  position: absolute;
  bottom: 18px;
  left: 44px;
  width: 9px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.mail-icon::before {
  position: absolute;
  top: 31px;
  left: 22px;
  width: 52px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 3px;
  content: "";
}

.mail-icon::after {
  position: absolute;
  top: 32px;
  left: 29px;
  width: 35px;
  height: 35px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.legal-page {
  padding: 42px 51px 64px;
  font-size: 14px;
  line-height: 1.45;
}

.legal-page[data-legal-doc="terms"] {
  font-size: 13px;
  line-height: 1.37;
}

.legal-page[data-legal-doc="privacy"] {
  min-height: 1148px;
}

.legal-page[data-legal-doc="cookies"] {
  min-height: 2467px;
}

.legal-page h1 {
  margin-bottom: 4px;
  font-size: 30px;
}

.legal-page .legal-lead {
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 600;
}

.legal-page .legal-date {
  margin-bottom: 24px;
  color: #555;
}

.legal-page h2 {
  margin: 22px 0 5px;
  font-size: 17px;
  line-height: 1.35;
}

.legal-page p {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .desktop-nav {
    gap: 20px;
    font-size: 14px;
  }

  .intro,
  .expert {
    grid-template-columns: 1fr 48%;
  }

  .intro-image,
  .expert-image {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .section-shell,
  .header-inner,
  .footer-inner {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 60px;
  }

  .header-inner {
    width: calc(100% - 40px);
  }

  .brand {
    width: 53px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    width: 28px;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: grid;
    padding: 10px 20px 20px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid #dedede;
    font-size: 16px;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav a.current {
    color: var(--red);
    font-weight: 600;
  }

  .hero {
    aspect-ratio: 375 / 420;
  }

  h1,
  h2 {
    font-size: 24px;
  }

  .intro {
    min-height: 406px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 21px;
  }

  .intro-copy {
    order: 0;
    padding: 0;
  }

  .intro-copy h1 {
    margin-bottom: 4px;
  }

  .intro-copy p {
    line-height: 1.5;
  }

  .intro-image {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 335 / 181;
  }

  .products {
    width: 100%;
    padding-top: 0;
  }

  .products > h2 {
    width: calc(100% - 40px);
    margin: 0 auto 14px;
    text-align: left;
  }

  .product-grid {
    width: calc(100% - 40px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .image-link,
  .image-link picture {
    height: auto;
    aspect-ratio: 335 / 241;
  }

  .expert {
    min-height: 364px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding-top: 20px;
  }

  .expert-copy {
    padding: 0;
  }

  .expert-copy h2 {
    margin-bottom: 3px;
  }

  .expert-copy p {
    line-height: 1.5;
  }

  .expert-image {
    width: 100%;
    height: auto;
    aspect-ratio: 335 / 181;
  }

  .faq-cta {
    min-height: 170px;
    padding: 21px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .85);
  }

  .faq-cta h2 {
    margin-bottom: 4px;
    line-height: 1.33;
  }

  .faq-cta p {
    max-width: 327px;
    margin-bottom: 10px;
    line-height: 1.42;
  }

  .outline-button {
    min-width: 132px;
    height: 38px;
    padding: 0 18px;
    border-radius: 19px;
    font-size: 14px;
  }

  .articles {
    min-height: 0;
    padding: 42px 0 86px;
  }

  .articles .section-shell {
    width: 100%;
  }

  .articles h2 {
    margin-bottom: 16px;
  }

  .article-window {
    overflow: visible;
  }

  .article-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: none !important;
  }

  .article-card picture {
    width: calc(100% - 40px);
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
  }

  .article-card h3 {
    width: calc(100% - 40px);
    margin: 15px auto 1px;
    font-size: 24px;
    font-weight: 500;
  }

  .article-card p {
    width: calc(100% - 40px);
    margin: 0 auto;
    line-height: 1.5;
  }

  .slider-dots {
    display: none;
  }

  .mobile-more {
    width: max-content;
    display: flex;
    margin: 29px auto 0;
    color: var(--ink);
  }

  .mobile-more:hover,
  .mobile-more:focus-visible {
    color: #fff;
    background: var(--ink);
  }

  .site-footer {
    min-height: 327px;
  }

  .faq-page {
    min-height: 1251px;
  }

  .faq-list {
    padding: 20px 0 18px;
  }

  .faq-list h1 {
    margin: 0 10px 13px;
    font-size: 30px;
  }

  .faq-list details {
    min-height: 151px;
    padding: 34px 30px 21px;
  }

  .faq-list summary {
    padding: 0 42px 0 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .faq-list summary::after {
    right: 4px;
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .faq-list details > p {
    margin: 16px 30px 0 0;
    line-height: 1.5;
  }

  .catalog-page {
    min-height: 550px;
    padding: 20px 10px 42px;
  }

  .catalog-page > h1 {
    margin: 0 0 24px;
    font-size: 24px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 10px;
  }

  .catalog-item {
    width: 100%;
  }

  .catalog-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .catalog-item h2 {
    min-height: 42px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.4;
  }

  .product-page {
    min-height: 1603px;
    display: block;
    padding-top: 29px;
    padding-bottom: 50px;
  }

  .product-main-image {
    width: 100%;
  }

  .product-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
  }

  .product-info {
    padding-top: 35px;
  }

  .product-info h1,
  .product-subtitle {
    min-height: 0;
    font-size: 24px;
    line-height: 1.35;
  }

  .product-subtitle {
    margin: 5px 0 20px;
  }

  .product-info hr {
    margin-inline: 0;
  }

  .product-info h2 {
    margin-top: 17px;
    font-size: 16px;
  }

  .store-links {
    gap: 10px;
    margin-bottom: 34px;
  }

  .store {
    height: 46px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .store.manning strong {
    margin-left: 4px;
    font-size: 19px;
  }

  .product-facts p {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .contact-page {
    min-height: 593px;
    padding: 18px 30px 51px;
  }

  .contact-page h1 {
    margin-bottom: 15px;
    font-size: 24px;
  }

  .contact-intro {
    margin-bottom: 30px;
    line-height: 1.55;
  }

  .contact-method {
    margin-bottom: 27px;
    font-size: 14px;
  }

  .contact-method strong {
    margin-top: 10px;
    font-size: 16px;
  }

  .legal-page {
    padding: 22px 10px 39px;
    font-size: 14px;
    line-height: 1.5;
  }

  .legal-page[data-legal-doc="terms"] {
    min-height: 5865px;
    font-size: 12px;
    line-height: 1.35;
  }

  .legal-page[data-legal-doc="privacy"] {
    min-height: 1648px;
    font-size: 13px;
    line-height: 1.42;
  }

  .legal-page[data-legal-doc="cookies"] {
    min-height: 4208px;
    font-size: 12px;
    line-height: 1.4;
  }

  .legal-page h1 {
    font-size: 24px;
  }

  .legal-page .legal-lead {
    font-size: 16px;
  }

  .legal-page h2 {
    margin-top: 20px;
    font-size: 16px;
  }

  .footer-inner {
    width: 100%;
    min-height: 327px;
    display: block;
    padding-top: 1px;
  }

  .contact {
    min-height: 177px;
    padding: 24px 29px 17px;
  }

  .contact h2 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .contact p {
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.43;
  }

  .footer-links {
    display: grid;
    justify-content: start;
    gap: 8px;
    padding: 16px 29px 20px;
    font-size: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
