:root {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #182b2b;
  background: #eef3ef;
  --ink: #182b2b;
  --muted: #6c7d79;
  --line: #e1e9e3;
  --cream: #fffaf0;
  --orange: #f27a1a;
  --orange-dark: #d85e09;
  --green: #138c69;
  --soft-green: #eaf6f0;
  --shadow: 0 18px 45px rgba(27, 58, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #eef3ef;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(242, 122, 26, 0.35);
  outline-offset: 3px;
}

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

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

.coupon-app {
  min-height: 100vh;
}

.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #eee9dc;
  background: #fffdf7;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-size: 16px;
  line-height: 1;
}

.site-brand small {
  margin-top: 5px;
  color: #9aaba5;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.header-status i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #4eb873;
  box-shadow: 0 0 0 4px rgba(78, 184, 115, 0.12);
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #8b5b2b;
  background: #fff3dc;
  font-size: 10px;
  font-weight: 700;
}

.hero-slider {
  width: min(100% - 28px, 1180px);
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  margin: 22px auto 0;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 250, 240, 0.77);
}

.hero-slider.green .hero-shade {
  background: rgba(232, 246, 236, 0.8);
}

.hero-slider.berry .hero-shade {
  background: rgba(255, 240, 233, 0.8);
}

.hero-slider.blue .hero-shade {
  background: rgba(232, 242, 247, 0.8);
}

.hero-copy {
  width: min(58%, 610px);
  padding: 58px 0 66px 7%;
}

.hero-eyebrow,
.section-kicker,
.modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  max-width: 600px;
  margin: 16px 0 13px;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 55px);
  line-height: 1.22;
}

.hero-copy p {
  max-width: 430px;
  margin: 0;
  color: #587069;
  font-size: 15px;
  line-height: 1.75;
}

.hero-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(242, 122, 26, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.hero-value {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: absolute;
  top: 50%;
  right: 8.5%;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background: #ec5727;
  box-shadow: 0 14px 28px rgba(152, 65, 32, 0.22);
  transform: translateY(-50%) rotate(6deg);
}

.hero-value::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
}

.hero-value span,
.hero-value strong,
.hero-value small {
  position: relative;
  z-index: 1;
}

.hero-value span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-value strong {
  margin-top: 1px;
  font-size: 39px;
  line-height: 1;
}

.hero-value small {
  font-size: 10px;
  font-weight: 800;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%);
}

.slider-arrow:hover {
  background: #fff;
}

.slider-prev {
  left: 18px;
}

.slider-next {
  right: 18px;
}

.slider-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  bottom: 24px;
  left: 7%;
}

.slider-dots button {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(24, 43, 43, 0.25);
}

.slider-dots button.active {
  width: 38px;
  background: var(--orange);
}

.benefit-strip {
  width: min(100% - 28px, 1180px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.benefit-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--green);
}

.benefit-strip > div + div {
  border-left: 1px solid var(--line);
}

.benefit-strip strong,
.benefit-strip small {
  display: block;
}

.benefit-strip strong {
  color: var(--ink);
  font-size: 13px;
}

.benefit-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.brand-section {
  width: min(100% - 28px, 1180px);
  margin: 0 auto;
  padding: 20px 0 58px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 10px 0 7px;
  color: var(--ink);
  font-size: clamp(26px, 3.4vw, 39px);
  line-height: 1.22;
}

.section-heading h2 em {
  color: var(--orange-dark);
  font-style: normal;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand-total {
  min-width: 86px;
  padding: 10px 13px 9px;
  border-left: 3px solid var(--orange);
  background: #fff4e6;
  text-align: center;
}

.brand-total strong,
.brand-total span {
  display: block;
}

.brand-total strong {
  color: var(--orange-dark);
  font-size: 30px;
  line-height: 1;
}

.brand-total span {
  margin-top: 4px;
  color: #ad7147;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #9cadab;
  background: #fff;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dce6df;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.category-tabs button.active,
.category-tabs button:hover {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(27, 58, 47, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.brand-art {
  min-height: 0;
  aspect-ratio: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 16px 12px 18px;
  color: var(--brand-ink);
  background: var(--brand-accent);
}

.brand-art::before,
.brand-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.brand-art::before {
  width: 146px;
  height: 146px;
  top: -61px;
  right: -46px;
}

.brand-art::after {
  width: 94px;
  height: 94px;
  bottom: -35px;
  left: -34px;
}

.brand-art-logo {
  width: 72px;
  height: 72px;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.15));
}

.brand-art-logo[src$=".jpg"] {
  width: 88px;
  height: 46px;
  border-radius: 8px;
}

.brand-art-mark {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 2px solid currentColor;
  border-radius: 16px;
  font-size: 30px;
  font-weight: 900;
}

.brand-art.has-logo .brand-art-mark {
  display: none;
}

.brand-art-name {
  position: relative;
  z-index: 1;
  max-width: 90%;
  margin-top: 13px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.brand-art-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 5px;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 800;
}

.brand-card-body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 20px 20px;
}

.brand-card-title {
  min-width: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.brand-card-title h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.brand-card-title span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 13px;
  color: var(--green);
  background: var(--soft-green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-card p {
  min-height: 49px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.brand-card-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: #e5ebe7;
}

.brand-card-offer {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.brand-card-offer small {
  display: block;
  color: #9c694c;
  font-size: 13px;
  font-weight: 800;
}

.brand-card-offer strong {
  display: block;
  margin-top: 3px;
  color: #b95a18;
  font-size: 32px;
  line-height: 1;
}

.brand-card-offer b {
  color: #168348;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  text-align: right;
}

.brand-card-action {
  margin-top: auto;
  padding-top: 22px;
}

.brand-card-action button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.brand-card-action button > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 3px;
  font-size: 14px;
}

.brand-card-action button > span b {
  font-size: 26px;
}

.brand-card-action button svg {
  position: absolute;
  right: 24px;
}

.brand-card-action button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.trust-band {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 28px, 1180px);
  margin: 0 auto 38px;
  padding: 16px 18px;
  border: 1px solid #d5e9db;
  border-radius: 10px;
  background: var(--soft-green);
}

.trust-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.trust-band > div:nth-child(2) {
  min-width: 0;
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  color: var(--ink);
  font-size: 13px;
}

.trust-band span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.trust-band button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px max(18px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: #91a19a;
  background: #fffdf7;
  font-size: 11px;
}

.site-footer strong {
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(21, 43, 40, 0.55);
  backdrop-filter: blur(5px);
}

.coupon-modal {
  width: min(100%, 430px);
  position: relative;
  padding: 29px 24px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(14, 39, 33, 0.25);
  text-align: center;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 13px;
  right: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
}

.modal-brand {
  min-height: 63px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 17px auto 14px;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--brand-ink);
  background: var(--brand-accent);
}

.modal-brand span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
}

.modal-brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.modal-brand-logo[src$=".jpg"] {
  width: 68px;
  height: 38px;
  border-radius: 6px;
}

.modal-brand strong {
  font-size: 13px;
}

.coupon-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
}

.coupon-modal p {
  margin: 9px 0 19px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal-claim {
  width: 100%;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.modal-claim:hover {
  background: var(--orange-dark);
}

.modal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
  color: #82928b;
  font-size: 10px;
}

.toast {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(25, 47, 43, 0.22);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy {
    width: 65%;
  }
}

@media (max-width: 700px) {
  .site-header {
    display: none;
  }

  .hero-slider {
    width: 100%;
    min-height: 290px;
    margin-top: 0;
    border-radius: 0;
  }

  .hero-copy {
    width: 71%;
    padding: 38px 0 62px 8%;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(25px, 8vw, 34px);
  }

  .hero-copy p {
    font-size: 12px;
  }

  .hero-value {
    width: 104px;
    height: 104px;
    right: 8%;
  }

  .hero-value strong {
    font-size: 31px;
  }

  .hero-value span,
  .hero-value small {
    font-size: 8px;
  }

  .slider-prev {
    left: 11px;
  }

  .slider-next {
    right: 11px;
  }

  .slider-dots {
    bottom: 17px;
    left: 8%;
  }

  .benefit-strip {
    width: 100%;
    padding: 14px 6px;
    border-radius: 0;
  }

  .benefit-strip > div {
    gap: 5px;
  }

  .benefit-strip strong {
    font-size: 10px;
  }

  .benefit-strip small {
    font-size: 8px;
  }

  .brand-section {
    width: 100%;
    padding: 14px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .brand-total {
    min-width: 69px;
    padding: 8px 7px;
  }

  .brand-total strong {
    font-size: 24px;
  }

  .brand-total span {
    font-size: 8px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
  }

  .brand-art {
    aspect-ratio: 1.45;
    padding: 10px 8px 12px;
  }

  .brand-art-logo {
    width: 50px;
    height: 50px;
    border-radius: 11px;
  }

  .brand-art-logo[src$=".jpg"] {
    width: 74px;
    height: 34px;
    border-radius: 6px;
  }

  .brand-art-mark {
    width: 45px;
    height: 45px;
    font-size: 21px;
  }

  .brand-art-name {
    max-width: 100%;
    margin-top: 7px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .brand-art-label {
    right: 7px;
    bottom: 7px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .brand-card-body {
    padding: 14px 10px 12px;
  }

  .brand-card-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand-card-title h3 {
    max-width: 100%;
    font-size: 13px;
  }

  .brand-card-title span {
    margin-left: auto;
    padding: 5px 6px;
    font-size: 8px;
  }

  .brand-card p {
    min-height: 0;
    margin: 10px 0 0;
    font-size: 10px;
  }

  .brand-card-divider {
    margin: 11px 0 9px;
  }

  .brand-card-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(46px, 64px);
    align-items: end;
    gap: 4px;
  }

  .brand-card-offer small {
    font-size: 9px;
  }

  .brand-card-offer strong {
    font-size: 22px;
  }

  .brand-card-offer b {
    min-width: 0;
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .brand-card-action {
    padding-top: 13px;
  }

  .brand-card-action button {
    min-height: 54px;
    padding: 0 8px;
    font-size: 11px;
  }

  .brand-card-action button > span {
    margin-top: 2px;
    font-size: 11px;
  }

  .brand-card-action button > span b {
    font-size: 18px;
  }

  .brand-card-action button svg {
    right: 9px;
  }

  .trust-band {
    width: calc(100% - 28px);
    margin-bottom: 20px;
  }

  .site-footer {
    display: none;
  }
}

@media (max-width: 390px) {
  .hero-copy {
    width: 73%;
    padding-left: 7%;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-value {
    right: 5%;
    width: 91px;
    height: 91px;
  }

  .hero-value strong {
    font-size: 27px;
  }

  .hero-cta {
    min-height: 42px;
    margin-top: 18px;
    padding: 0 12px;
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: 22px;
  }
}
