:root {
  --ink: #4f2c1a;
  --line: rgba(92, 52, 28, 0.45);
  --green: #355347;
  --green-dark: #274037;
  --shadow: 0 10px 24px rgba(54, 28, 14, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #8b5734 0%, #6c4024 100%);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px;
  background: linear-gradient(180deg, #dcc18c 0%, #cfaf74 100%);
  border-left: 3px solid #5d341f;
  border-right: 3px solid #5d341f;
  box-shadow: 0 0 0 2px rgba(255, 233, 186, 0.15) inset;
}

.topbar {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ecd9af 0%, #e1c690 100%);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7e9c8;
  border: 2px solid rgba(92, 52, 28, 0.4);
  font-size: 20px;
  font-weight: 800;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.searchbar {
display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 6px 6px 12px;
  border: 2px solid rgba(92, 52, 28, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.96) 0%, rgba(246, 234, 205, 0.96) 100%);
  box-shadow: inset 0 2px 4px rgba(92, 52, 28, 0.08);
}

.search-icon {
  font-size: 16px;
  color: rgba(79, 44, 26, 0.6);
  text-align: center;
}

.searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.searchbar input::placeholder {
  color: rgba(79, 44, 26, 0.55);
}

.searchbar button {
  min-width: 78px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #f7e8c5;
  font-weight: 700;
  cursor: pointer;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.entry-card {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  text-align: center;
  background: linear-gradient(180deg, #f0ddb4 0%, #e0c288 100%);
  border: 2px solid rgba(92, 52, 28, 0.48);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(122, 63, 34, 0.22);
  border-radius: 12px;
  pointer-events: none;
}

.entry-label {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 800;
  color: #6a2f1c;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  background: #d7b77b;
}

.slider-track {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
  width: 100%;
}

.slide.is-active {
  display: block;
}

.slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff7e5;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.dot.is-active {
  background: #ffffff;
}

.hero-caption-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #7a3f22 0%, #5b2d19 100%);
  color: #f5dfaf;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-top: 2px solid rgba(255, 224, 161, 0.18);
}

@media (min-width: 768px) {
  .page-shell {
    max-width: 720px;
    padding: 20px;
  }

  .topbar {
    grid-template-columns: 220px 1fr;
    align-items: center;
  }

  .entry-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .slide img {
    aspect-ratio: 16 / 9;
  }
}
/* support cta */
.support-cta {
  padding: 20px 16px 32px;
}

.support-cta-card {
  padding: 20px 18px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff8ec 0%, #f4e2bf 100%);
  border: 1px solid rgba(92, 52, 28, 0.12);
  box-shadow: 0 10px 22px rgba(54, 28, 14, 0.08);
  text-align: center;
}

.support-cta-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #7a3f22;
  color: #f7e2b6;
  font-size: 12px;
  font-weight: 700;
}

.support-cta-title {
  margin: 0 0 10px;
  color: #4a2416;
  font-size: 26px;
  line-height: 1.2;
}

.support-cta-text {
  margin: 0 auto 18px;
  max-width: 28rem;
  color: #5a3422;
  font-size: 14px;
  line-height: 1.8;
}

.support-cta-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.support-cta-image-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.support-cta-image-link:active {
  transform: scale(0.985);
}

.support-cta-image {
  display: block;
  width: min(220px, 62vw);
  height: auto;
}

@media (min-width: 768px) {
  .support-cta {
    padding: 28px 20px 40px;
  }

  .support-cta-card {
    padding: 24px 24px 28px;
  }

  .support-cta-title {
    font-size: 30px;
  }

  .support-cta-text {
    font-size: 15px;
  }

  .support-cta-image {
    width: 240px;
  }
}

/* page footer links (company / legal pages entry point) */
.page-footer-links {
  margin-top: 8px;
  padding: 20px 16px 28px;
  text-align: center;
  background: rgba(0, 0, 0, 0.12);
}

.page-footer-links-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 10px;
}

.page-footer-links-nav a {
  color: #f7e2b6;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-footer-legal {
  margin: 0;
  color: rgba(247, 226, 182, 0.8);
  font-size: 12px;
}
