/* 配色對齊 IG @maonubuy：薄荷綠底、白色圓角卡、黑字、粉紅重點、綠色膠囊標籤
   色碼取自喵喵好物工具 make.py 的 TEAL / TEAL_D / PINK / PINK_D */
:root {
  --mint: #73d0c5;
  --mint-deep: #48a89e;   /* TEAL_D */
  --mint-text: #48a89e;
  --mint-soft: #e3f5f2;
  --pink: #ee8f8f;
  --pink-text: #ee8f8f;   /* 使用者指定的粉紅，文字與色塊共用 */
  --pink-soft: #fde9e8;
  --yellow: #ffe14d;
  --surface: #ffffff;
  --card: #f3f8f7;
  --ink: #222222;
  --ink-soft: #4b4b4b;
  --muted: #7d8987;
  --line: #e4ecea;
  --radius: 20px;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: .03em; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.45; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.panel { background: var(--surface); border-radius: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(115, 208, 197, .94);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.logo-text small { font-size: 11px; letter-spacing: .1em; font-weight: 500; opacity: .95; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; color: #fff; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 40px 44px; margin-top: 12px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.45; margin-bottom: 18px; }
.hero h1 em {
  font-style: normal; color: var(--pink-text);
  background: linear-gradient(transparent 62%, #fff1a8 62%);   /* 淡黃底線 */
}
.lead { color: var(--ink-soft); margin: 0 0 26px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stat {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--mint); padding: 4px 12px; border-radius: 999px;
}
.hero-visual { position: relative; border-radius: 22px; overflow: hidden; background: var(--mint); padding: 6px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; aspect-ratio: 1.15; }
.hero-tile {
  border: 0; padding: 0; background: #fff; border-radius: 16px; overflow: hidden; cursor: pointer;
}
.hero-tile img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.hero-tile:hover img { transform: scale(1.04); transition: transform .3s; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--ink); color: #fff;
  padding: 5px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; border-radius: 999px;
}

/* Buttons：黑色膠囊，沿用舊 Canva「這裡買 →」 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--pink-text); }
.btn-ghost { background: var(--surface); border-color: var(--ink); }
.btn-ghost:hover { background: var(--mint-soft); }

/* Shop */
.shop { padding: 56px 0 64px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.on-mint h2 { color: #fff; }
.on-mint .eyebrow { color: var(--ink); }
.on-mint .section-head .muted { color: #fff; font-weight: 500; }
.shop-layout { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: 92px; min-width: 0; }
.shop-main { min-width: 0; }
.side-label { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.cat-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.cat-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px; border: 0; border-radius: 999px; background: #fff; text-align: left;
  font-size: 14px; font-weight: 700;
}
.cat-list button:hover { background: var(--mint-soft); }
.cat-list button.active { background: var(--ink); color: #fff; }
.cat-list .n { font-size: 12px; opacity: .7; }
.side-note { background: #fff; border-radius: 18px; padding: 16px; font-size: 13px; color: var(--ink-soft); }
.side-note p { margin: 0 0 8px; }
.side-note-title { color: var(--pink-text); font-weight: 700; }
.side-note a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid transparent; border-radius: 999px; padding: 0 18px;
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; padding: 10px 0; min-width: 0; }
.search:focus-within { border-color: var(--ink); }
.chips-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.chips-row > .muted { color: #fff; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.55); border: 2px solid transparent;
}
.chip.active { background: #fff; border-color: var(--ink); }
.cat-intro { font-size: 13.5px; font-weight: 500; color: var(--ink); margin: 6px 0 18px; }
.cat-intro:empty { margin: 0 0 14px; }

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

/* Card：白色圓角卡，像 IG 貼文 */
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 12px 12px 16px; }
.card-media { position: relative; aspect-ratio: 1.15; border-radius: 14px; background: var(--card); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .cat-tag {
  position: absolute; left: 8px; bottom: 8px;
  background: var(--mint); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
}
.card-brand { margin: 12px 4px 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.card-name { margin: 0 4px 10px; font-size: 16px; font-weight: 900; line-height: 1.5; min-height: 3em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 4px 14px; }
.tag { font-size: 11.5px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--mint); color: #fff; }
.tag.alt { background: var(--pink-soft); color: var(--pink-text); }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-actions .btn { padding: 7px 6px; font-size: 13px; }
.card-more { margin: 8px 4px 0; font-size: 12px; font-weight: 500; color: var(--pink-text); }
.empty { text-align: center; color: #fff; font-weight: 700; padding: 50px 0; }

.pick-badge {
  position: absolute; left: 8px; top: 8px;
  background: var(--pink-text); color: #fff; font-size: 12px; font-weight: 900;
  padding: 3px 12px; border-radius: 999px; letter-spacing: .05em;
}

/* Band */
.band { background: var(--mint-deep); padding: 56px 0; }

/* Guide */
.guide { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; padding: 48px 44px; margin-top: 56px; }
.guide-intro h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 16px; }
.guide-intro p { color: var(--ink-soft); }
.accordion { display: grid; gap: 10px; }
.accordion details { background: var(--card); border-radius: 18px; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 900;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: #fff; font-size: 18px; line-height: 1;
}
.accordion details[open] summary::after { content: "−"; background: var(--ink); }
.accordion summary small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: auto; }
.acc-body { padding: 0 20px 20px; color: var(--ink-soft); }
.acc-body p { margin: 0 0 10px; }
.acc-body ul { margin: 0 0 14px; padding-left: 1.2em; }
.acc-body li { margin-bottom: 6px; }
.acc-body li::marker { color: var(--pink-text); }
.featured {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px;
  background: #fff; border: 2px solid var(--pink); border-radius: 18px; padding: 14px; margin: 4px 0 18px;
}
.featured-media { position: relative; border-radius: 12px; overflow: hidden; background: var(--card); align-self: start; }
.featured-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.featured-info h3 { font-size: 17px; color: var(--ink); margin: 2px 0 6px; }
.featured-info p { margin: 0 0 8px; font-size: 14px; }
.featured-info ul { font-size: 13.5px; margin-bottom: 12px; }
.featured-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.featured-actions .btn { padding: 7px 18px; font-size: 13px; }
.tips-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.modal-note { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.acc-body .link { color: var(--mint-text); font-weight: 700; font-size: 14px; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

/* Before */
.before { padding: 44px 44px 48px; margin: 22px auto 56px; }
.before h2 { margin-bottom: 26px; }
.before-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.before h3 { font-size: 15px; margin-bottom: 8px; padding-left: 10px; border-left: 4px solid var(--mint); line-height: 1.4; }
.before p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--mint); }
.footer-title { font-size: 18px; font-weight: 900; letter-spacing: .1em; }
.site-footer p { margin: 2px 0 0; font-size: 13px; opacity: .8; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; }
.footer-links .social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links .social a {
  text-decoration: none; font-weight: 700;
  background: var(--mint); color: var(--ink); padding: 5px 14px; border-radius: 999px;
}
.footer-links .social a:hover { background: var(--pink); }
.footer-links small { opacity: .65; font-size: 11.5px; }

/* Modal */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(20, 60, 55, .5); }
.modal { width: min(760px, 100% - 32px); border-radius: 24px; }
.modal-body { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-media { background: var(--card); display: grid; place-items: center; padding: 24px; }
.modal-media img { mix-blend-mode: multiply; max-height: 340px; object-fit: contain; }
.modal-info { padding: 32px 28px 28px; }
.modal-info h3 { font-size: 21px; margin: 2px 0 12px; line-height: 1.45; }
.modal-info h4 { font-size: 13px; color: var(--pink-text); margin: 18px 0 6px; letter-spacing: .06em; }
.modal-info ul { margin: 0; padding-left: 1.1em; font-size: 13.5px; color: var(--ink-soft); }
.modal-info li { margin-bottom: 4px; }
.modal-info .tags, .modal-info .card-brand { margin-left: 0; }
.modal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.modal-links .btn { padding: 9px 20px; }
.modal-close {
  position: absolute; right: 12px; top: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #fff; font-size: 22px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .guide { grid-template-columns: 1fr; gap: 26px; padding: 36px 28px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 28px 22px; }
  .shop-layout { grid-template-columns: 1fr; gap: 14px; }
  .sidebar { position: static; }
  .side-label, .side-note { display: none; }
  .cat-list { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .cat-list button { white-space: nowrap; gap: 8px; padding: 7px 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .before { padding: 32px 22px; }
  .before-grid { grid-template-columns: 1fr; gap: 22px; }
  .modal-body { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { max-width: 260px; }
  .modal-media img { max-height: 220px; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 13px; }
  .logo-text small { display: none; }
  .header-inner { height: 64px; }
  .card { padding: 8px 8px 12px; border-radius: 16px; }
  .card-actions { grid-template-columns: 1fr; }
  .card-name { font-size: 14.5px; min-height: 0; }
  .chips-row { flex-direction: column; align-items: flex-start; }
  .footer-links { align-items: flex-start; }
  .section-head { align-items: flex-start; }
}
