:root {
  color-scheme: light;
  --ink: #14191f;
  --muted: #68727c;
  --line: #dde2e8;
  --paper: #f4f0e8;
  --panel: #ffffff;
  --deep: #102635;
  --leaf: #237269;
  --amber: #d38230;
  --rose: #bb4667;
  --blue: #2f74a8;
  --mint: #dff3eb;
  --lavender: #ebe6ff;
  --sun: #fff1c8;
  --coral: #ffe4de;
  --shadow: 0 22px 60px rgba(20, 25, 31, 0.14);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(47, 116, 168, 0.06), transparent 28%, rgba(211, 130, 48, 0.08) 76%, transparent),
    var(--paper);
  color: var(--ink);
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 252, 246, 0.9);
  border-bottom: 1px solid rgba(22, 32, 31, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  color: #fff;
  font-weight: 800;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 22px;
  color: #2f3d3a;
  font-size: 15px;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--amber);
}

.btn,
.icon-btn,
.icon-only {
  border: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  color: #fff;
}

.btn.ghost {
  color: var(--deep);
  background: #e7f1f6;
}

.btn.muted {
  background: #ece7df;
  color: var(--muted);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.icon-btn b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: var(--amber);
  color: #fff;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 72px) 44px;
  background:
    linear-gradient(115deg, rgba(47, 116, 168, 0.14), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(187, 70, 103, 0.2), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(35, 114, 105, 0.18), transparent 30%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: #485652;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #20374c, #6b2f50);
  box-shadow: var(--shadow);
}

.hero-stage img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.44));
}

.hero-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: min(320px, calc(100% - 44px));
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.hero-card span,
.hero-card small {
  display: block;
  color: var(--muted);
}

.hero-card strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 22px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 30px;
}

.stats span {
  color: var(--muted);
}

.section {
  padding: 78px clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.section h2,
.guide h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

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

.category-card {
  display: block;
  min-height: 150px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, #fff, var(--mint));
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}

.category-card:nth-child(2n) {
  background: linear-gradient(160deg, #fff, var(--sun));
}

.category-card:nth-child(3n) {
  background: linear-gradient(160deg, #fff, var(--lavender));
}

.category-card:nth-child(4n) {
  background: linear-gradient(160deg, #fff, var(--coral));
}

.category-card strong {
  display: block;
  margin-bottom: 24px;
  font-size: 17px;
}

.category-card span {
  color: var(--muted);
}

.category-showcase-section {
  padding-top: 0;
}

.category-showcase {
  display: grid;
  gap: 18px;
}

.category-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(223, 243, 235, 0.7)),
    #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.category-feature:nth-child(2n) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 200, 0.78)),
    #fff;
}

.category-feature:nth-child(3n) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(235, 230, 255, 0.8)),
    #fff;
}

.category-feature-copy h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.category-feature-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.category-feature-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-product {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(20, 25, 31, 0.08);
}

.mini-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  background: #edf1ef;
}

.mini-product span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.category-count {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

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

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.search-box input,
.select-box select {
  width: min(340px, 72vw);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.select-box select {
  width: 180px;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.16);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #31413e;
  cursor: pointer;
}

.filter-tabs button.active {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px rgba(20, 25, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(47, 116, 168, 0.22), 0 22px 46px rgba(20, 25, 31, 0.16);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #edf6f5, #f5ecf1);
}

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

.product-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-body h3 {
  min-height: 54px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.product-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 14px;
  padding-top: 14px;
}

.price {
  color: var(--rose);
  font-size: 20px;
  font-weight: 800;
}

.option-count {
  color: var(--muted);
  font-size: 13px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-actions button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  cursor: pointer;
}

.product-actions button:last-child {
  border-color: var(--leaf);
  background: linear-gradient(135deg, var(--leaf), var(--blue));
  color: #fff;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.detail-gallery {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf6f5, #f5ecf1);
  box-shadow: var(--shadow);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-copy h1,
.category-page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.detail-copy > p,
.category-page-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 22px 0;
}

.detail-price strong {
  color: var(--rose);
  font-size: 32px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-box {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.detail-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-section,
.category-page-head {
  padding: 58px clamp(18px, 5vw, 72px);
}

.detail-section {
  padding-top: 0;
}

.detail-section .option-list {
  max-width: 960px;
}

.category-page-head {
  background: linear-gradient(120deg, rgba(47, 111, 94, 0.1), transparent), var(--paper);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--deep);
  font-weight: 800;
}

.load-more {
  margin: 28px auto 0;
  background: #fff;
  color: var(--deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.guide {
  padding: 0 clamp(18px, 5vw, 72px) 78px;
}

.guide-panel {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(211, 130, 48, 0.28), transparent 30%),
    linear-gradient(135deg, #102635, #173b3a 52%, #442944);
  color: #fff;
}

.guide-panel .eyebrow {
  color: #e0a66b;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.guide-steps article {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.guide-steps span {
  color: #e0a66b;
  font-weight: 800;
}

.guide-steps h3 {
  margin: 16px 0 8px;
}

.guide-steps p,
.site-footer p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.faq details {
  margin-top: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 5vw, 72px);
  background: linear-gradient(135deg, #0e171d, #102635);
  color: #fff;
}

.site-footer p {
  max-width: 680px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.age-gate,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(17, 28, 26, 0.72);
}

.age-gate.show,
.drawer.show {
  display: block;
}

.age-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(540px, calc(100% - 32px));
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.age-panel h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.age-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px;
  background: #fff;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-only {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  background: #edf1ef;
  color: var(--deep);
  font-size: 24px;
}

.list-items {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.list-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf1ef;
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

.list-item p,
.drawer-note,
.empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-dialog {
  width: min(920px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(17, 28, 26, 0.7);
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 0;
}

.dialog-gallery {
  background: #edf1ef;
}

.dialog-gallery img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-info {
  padding: 34px;
}

.dialog-info h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
}

.dialog-info p {
  color: var(--muted);
  line-height: 1.8;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.option-list span {
  padding: 7px 10px;
  border-radius: 4px;
  background: #eef3f5;
  color: #2c4744;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .dialog-layout,
  .detail-hero,
  .category-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage,
  .hero-stage img,
  .dialog-gallery img {
    min-height: 420px;
  }

  .category-strip,
  .product-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-steps,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .icon-btn {
    margin-left: auto;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-stage,
  .hero-stage img {
    min-height: 360px;
  }

  .stats,
  .category-strip,
  .category-feature-products,
  .detail-grid,
  .guide-steps,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    justify-content: stretch;
  }

  .search-box input,
  .select-box select {
    width: 100%;
  }

  .product-body h3 {
    min-height: auto;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .dialog-info {
    padding: 24px;
  }
}
