@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-tc-subset.ttf?v=2") format("truetype");
}
@font-face {
  font-family: "uicons-regular-rounded";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/uicons-regular-rounded.woff2") format("woff2");
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Roboto", sans-serif;
  color: #333;
  background: #fff;
}
a { color: inherit; }
.site-main { flex: 1; }
.nav-open, .search-open, .ftog { position: absolute; opacity: 0; pointer-events: none; }
.scrim { display: none; }
.i { font-family: "uicons-regular-rounded"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; }
.i-search:before { content: "\f207"; }
.i-user:before { content: "\f257"; }
.i-cart:before { content: "\f215"; }
.i-menu:before { content: "\f1c9"; }
.i-ticket:before { content: "\f238"; }
.i-bell:before { content: "\f12c"; }
.i-left:before { content: "\f10d"; }
.i-right:before { content: "\f10e"; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid #c1c1c1;
  padding: 20px 0 0;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 10px;
}
.header-left { flex: none; display: flex; align-items: center; }
.backbtn, .search-toggle { display: none; }
.header-logo img { display: block; max-height: 50px; max-width: 105px; width: auto; }
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 43px;
  background: #fff;
  border: 1px solid #c1c1c1;
  border-radius: 5px;
  overflow: hidden;
}
.header-search input {
  flex: 1;
  border: 0;
  height: 100%;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: transparent;
}
.header-search button {
  width: 57px;
  height: 43px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header-search .i { font-size: 22px; color: #f21170; }
.features { display: flex; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; flex: none; }
.features a { position: relative; display: flex; align-items: center; justify-content: center; min-width: 36px; text-decoration: none; }
.features .i { font-size: 28px; color: #f21170; line-height: 36px; }
.features .md img { width: 28px; height: 32px; object-fit: contain; display: block; }
.features .qty {
  position: absolute;
  top: -8px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 2px;
  border-radius: 8px;
  background: #c1c1c1;
  color: #f21170;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.header-bottom { max-width: 1400px; margin: 0 auto; }
.header-bottom ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 8px; }
.header-bottom a {
  display: inline-block;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  color: #333;
}
.header-bottom a:hover { color: #f21170; }

.page-footer { background: #343741; color: #fff; font-size: 14px; }
.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 16px 10px;
}
.page-footer section:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.page-footer section:nth-of-type(4) { grid-column: 3; grid-row: 2; }
.page-footer .h5 { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; color: #fff; }
.page-footer ul { list-style: none; margin: 0; padding: 0; }
.page-footer li { padding: 5px 0; }
.page-footer a { color: #fff; text-decoration: none; }
.page-footer a:hover { color: #f21170; }
.apps { width: 120px; }
.apps img { width: 120px; height: auto; display: block; }
.social { display: flex; gap: 10px; margin: 10px 0 0; }
.social img { width: 50px; height: 50px; border-radius: 10px; display: block; }
.pay { display: flex; gap: 10px; margin: 20px 0 0; }
.pay img { width: 50px; height: auto; border-radius: 5px; display: block; background: #fff; }
.copy { text-align: center; margin: 0; padding: 10px 16px 28px; }
.mb-toolbar { display: none; }

@media (max-width: 767px) {
  .page-header { padding: 0; min-height: 50px; }
  .header-row { display: block; position: relative; padding: 8px 44px 6px; text-align: center; }
  .backbtn {
    display: inline-flex;
    position: absolute;
    left: 6px;
    top: 14px;
    color: #333;
    text-decoration: none;
  }
  .backbtn .i { font-size: 17px; color: #333; }
  .header-logo img { max-height: 31px; margin: 0 auto; }
  .features, .header-bottom { display: none; }
  .search-toggle {
    display: flex;
    position: absolute;
    right: 6px;
    top: 8px;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .search-toggle .i { font-size: 17px; color: #f21170; }
  .header-search {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    height: 44px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
  }
  .search-open:checked ~ .page-header .header-search { display: flex; }
  .nav-open:checked ~ .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 850; }
  .nav-open:checked ~ .page-header .header-bottom {
    display: block;
    position: fixed;
    z-index: 900;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-width: none;
    margin: 0;
    background: #fff;
    overflow: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  }
  .nav-open:checked ~ .page-header .header-bottom ul { flex-direction: column; padding: 12px 0 70px; }
  .nav-open:checked ~ .page-header .header-bottom a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 400;
  }
  .foot-top { display: block; padding: 16px; }
  .page-footer section:nth-of-type(3),
  .page-footer section:nth-of-type(4) { grid-column: auto; grid-row: auto; }
  .page-footer .foot-links { display: none; }
  .ftog:checked + section .foot-links { display: block; margin-bottom: 8px; }
  .ftog:checked + section .pay.foot-links { display: flex; }
  .page-footer .h5 { cursor: pointer; margin: 0; padding: 8px 0; }
  .page-footer .h5:after {
    content: "\f10e";
    font-family: "uicons-regular-rounded";
    float: right;
    font-size: 18px;
    font-weight: 400;
  }
  .ftog:checked + section .h5:after { transform: rotate(90deg); }
  .page-footer { padding-bottom: 8px; }
  .mb-toolbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    background: #fff;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.15);
  }
  .mb-toolbar a, .mb-toolbar label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 0 4px;
    color: #f21170;
    text-decoration: none;
    font-size: 13px;
    line-height: 12px;
    position: relative;
    cursor: pointer;
  }
  .mb-toolbar .i { font-size: 20px; color: #f21170; }
  .mb-toolbar .badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 6px);
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 100%;
    background: #f21170;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
  }
  body { padding-bottom: 64px; }
}
