/* =====================================================================
   啥！玩藝 — 文創商品販售平台
   全站共用樣式表。配色採用淺藍綠色（teal / mint / aqua）清爽活潑風格。
   ===================================================================== */

:root {
  /* ---- 主色系：淺藍綠 ---- */
  --teal-900: #0f5e5a;
  --teal-700: #15827b;
  --teal-600: #1aa098;   /* 主色 */
  --teal-500: #2bb8ae;
  --teal-300: #7fd6cf;
  --teal-100: #d4f1ee;
  --mint-050: #eafaf7;
  --aqua-bg:  #f3fbfa;   /* 頁面背景 */

  /* ---- 活潑點綴色 ---- */
  --accent-coral: #ff8a6b;
  --accent-yellow: #ffd166;
  --accent-pink:  #ff9fb2;

  /* ---- 中性 ---- */
  --ink:      #213a39;
  --ink-soft: #4f6c6a;
  --line:     #d8ece9;
  --white:    #ffffff;

  /* ---- 設計尺度 ---- */
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(26, 160, 152, .10);
  --shadow-md: 0 10px 30px rgba(26, 160, 152, .16);
  --transition: .25s ease;

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--aqua-bg);
  line-height: 1.7;
  font-size: clamp(15px, 1.6vw, 17px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.25; color: var(--teal-900); font-weight: 800; }

/* ---------- 共用容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--mint-050); }

.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); margin-top: .7rem; }
.eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .12em;
  color: var(--teal-600); font-size: .8rem; text-transform: uppercase;
  margin-bottom: .6rem;
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--teal-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--white); color: var(--teal-700); border-color: var(--teal-300); }
.btn-ghost:hover { background: var(--teal-100); transform: translateY(-2px); }
.btn-accent { background: var(--accent-coral); color: var(--white); }
.btn-accent:hover { background: #ff744f; transform: translateY(-2px); }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }

/* ---------- 頁首 / 導覽 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 251, 250, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.35rem; color: var(--teal-700); }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
}
.brand b { color: var(--accent-coral); }

.nav-links { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.nav-links a { font-weight: 600; color: var(--ink); padding: .35rem .2rem; position: relative; transition: color var(--transition); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-600); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  border-radius: 3px; background: var(--accent-coral);
}
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* 漢堡選單 */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 3px;
  background: var(--teal-700); margin-inline: auto; transition: var(--transition);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(4.5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(243,251,250,.96) 0%, rgba(243,251,250,.78) 42%, rgba(243,251,250,.25) 70%, rgba(243,251,250,.05) 100%),
    url("../images2/hero-bg.png") center/cover no-repeat;
  background-color: var(--teal-100);
}
.hero-inner {
  display: flex; align-items: center; min-height: clamp(440px, 64vh, 600px);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.hero h1 .hl { color: var(--accent-coral); }
.hero p { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--ink-soft); margin-top: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; color: var(--teal-700); font-weight: 700; font-size: .92rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- 分類網格 ---------- */
.cat-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-card .cat-body { padding: 1.1rem 1.3rem 1.4rem; }
.cat-card h3 { font-size: 1.25rem; }
.cat-card p { color: var(--ink-soft); font-size: .92rem; margin-top: .35rem; }
.cat-card .cat-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; color: var(--teal-600); font-weight: 700; }

/* ---------- 商品卡片 ---------- */
.product-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media { position: relative; }
.product-media img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.tag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--accent-coral); color: #fff; font-weight: 700; font-size: .75rem;
  padding: .25em .7em; border-radius: 999px;
}
.tag--mint { background: var(--teal-600); }
.tag--yellow { background: var(--accent-yellow); color: var(--ink); }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--teal-600); text-transform: uppercase; }
.product-body h3 { font-size: 1.08rem; margin-top: .25rem; }
.product-desc { color: var(--ink-soft); font-size: .9rem; margin-top: .45rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.price { font-weight: 800; color: var(--teal-700); font-size: 1.25rem; }
.price small { font-weight: 600; font-size: .8rem; color: var(--ink-soft); }

/* ---------- 分類篩選列 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.filter-bar button {
  font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: .5em 1.2em; border-radius: 999px; border: 2px solid var(--line);
  background: var(--white); color: var(--ink-soft); transition: var(--transition);
}
.filter-bar button:hover { border-color: var(--teal-300); color: var(--teal-700); }
.filter-bar button.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

/* ---------- 分類區塊標題（商品頁） ---------- */
.cat-section { scroll-margin-top: 90px; }
.cat-section + .cat-section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.cat-section-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 2px dashed var(--line); }
.cat-section-head h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.cat-section-head .count { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }

/* ---------- 特色 / 三欄圖示 ---------- */
.feature-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm); text-align: center;
}
.feature .ico {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--teal-100); color: var(--teal-700);
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-soft); font-size: .92rem; margin-top: .5rem; }

/* ---------- CTA 橫幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-600), var(--teal-700));
  color: #fff; border-radius: var(--radius-lg); text-align: center;
  padding: clamp(2.2rem, 6vw, 3.6rem) var(--gutter);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); margin-top: .7rem; max-width: 540px; margin-inline: auto; }
.cta-band .btn { margin-top: 1.6rem; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--teal-900); color: #cfeae7; margin-top: clamp(3rem, 7vw, 5rem); }
.footer-grid {
  display: grid; gap: 2rem; padding-block: clamp(2.6rem, 6vw, 3.6rem);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer a { color: #cfeae7; transition: color var(--transition); }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: .5rem; }
.footer-about p { color: #a9d4d0; font-size: .92rem; max-width: 34ch; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: var(--teal-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; text-align: center; color: #9cc8c4; font-size: .85rem; }

/* ---------- 頁面標題橫幅（子頁） ---------- */
.page-hero { background: linear-gradient(120deg, var(--teal-100), var(--mint-050)); text-align: center; padding-block: clamp(2.6rem, 6vw, 4rem); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.page-hero p { color: var(--ink-soft); margin-top: .7rem; max-width: 560px; margin-inline: auto; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--teal-600); }

/* ---------- 關於頁 ---------- */
.about-split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: 1.1fr 1fr; align-items: center; }
.about-split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-split h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin-bottom: 1rem; }
.about-split p + p { margin-top: 1rem; }
.about-split p { color: var(--ink-soft); }
.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: clamp(2.5rem, 6vw, 3.5rem); text-align: center; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--teal-600); }
.stat span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- 聯絡頁 ---------- */
.contact-split { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); grid-template-columns: 1fr 1.2fr; align-items: start; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.info-card + .info-card { margin-top: 1rem; }
.info-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.info-card p { color: var(--ink-soft); margin-top: .35rem; font-size: .95rem; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .75em .9em; border: 2px solid var(--line); border-radius: 12px;
  background: var(--aqua-bg); transition: border var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-500); transition: var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- 雜項 ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }

/* =====================================================================
   RWD
   ===================================================================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-split { grid-template-columns: 1fr; }
  .about-split .about-media { order: -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav[data-open="true"] .nav-links { max-height: 360px; }
  .nav-links a { padding: .9rem var(--gutter); border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-actions .btn { display: none; }
  .hero-inner { min-height: auto; }
  .hero { background-image: linear-gradient(0deg, rgba(243,251,250,.92), rgba(243,251,250,.72)), url("../images2/hero-bg.png"); background-position: center; background-size: cover; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: .9rem 1.2rem; }
}
