/* quick-inquiry-site — 單一樣式表，無外部依賴。
   改主色只要動 --accent；其餘不建議每站重寫。 */

:root {
  --accent: #2f6f4e;
  --accent-dark: #21503a;
  --ink: #1c1c1e;
  --ink-soft: #55555c;
  --line: #e3e3e6;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --radius: 8px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 6px; object-fit: contain; }
.brand span { font-size: 17px; letter-spacing: .01em; }

.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--accent); font-weight: 700; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 11px; font-size: 17px; cursor: pointer; line-height: 1;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px 12px 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-top: 1px solid var(--line); }
}

/* ---------- hero slideshow ---------- */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero-track { position: relative; aspect-ratio: 2 / 1; }
@media (max-width: 720px) { .hero-track { aspect-ratio: 4 / 3; } }
.hero-track img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.hero-track img.on { opacity: 1; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: none; background: rgba(255,255,255,.55); cursor: pointer;
}
.hero-dots button.on { background: #fff; }

/* ---------- generic section ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); }
.section h2 {
  margin: 0 0 8px; font-size: 26px; letter-spacing: .01em;
}
.section .lead { margin: 0 0 32px; color: var(--ink-soft); }

.intro { text-align: center; max-width: 720px; margin: 0 auto; }

/* ---------- button ---------- */
.btn {
  display: inline-block; padding: 12px 26px;
  background: var(--accent); color: #fff; font-weight: 600;
  border-radius: var(--radius); border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ---------- product grid (3 across, square) ---------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); transform: translateY(-2px); text-decoration: none; }
.card .thumb { aspect-ratio: 1 / 1; background: var(--bg-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.card .sub { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1; }
.card .price { margin: 0; font-size: 18px; font-weight: 700; color: var(--accent); }

/* ---------- stacked main images ---------- */
.stack { display: flex; flex-direction: column; }
.stack img { width: 100%; }

/* ---------- product detail ---------- */
.crumb { font-size: 14px; color: var(--ink-soft); padding: 18px 0 0; }
.crumb a { color: var(--ink-soft); }

.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 28px 0 56px; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 26px; } }

.pd-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--bg-soft); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs img {
  aspect-ratio: 1/1; object-fit: cover; width: 100%;
  border: 1px solid var(--line); border-radius: 5px; cursor: pointer; opacity: .62;
}
.pd-thumbs img.on, .pd-thumbs img:hover { opacity: 1; border-color: var(--accent); }

.pd-info h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.45; }
.pd-fullname { margin: 0 0 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.pd-price { font-size: 30px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.pd-note { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.pd-meta { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--ink-soft); }
.pd-meta div { margin-bottom: 4px; }

/* ---------- rich text (商品文案轉出來的區塊) ---------- */
.rich { max-width: 860px; }
.rich h3 {
  margin: 32px 0 10px; padding-left: 11px;
  font-size: 18px; border-left: 4px solid var(--accent);
}
.rich h3:first-child { margin-top: 0; }
.rich p { margin: 0 0 12px; }
.rich ul { margin: 0 0 16px; padding-left: 20px; }
.rich li { margin-bottom: 5px; }
.rich hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.info-list .k { flex: 0 0 82px; color: var(--ink-soft); font-size: 14px; }
.info-list .v { font-weight: 500; word-break: break-word; }
.notice {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.notice h3 { margin: 0 0 8px; font-size: 17px; }
.notice p { margin: 0 0 10px; color: var(--ink-soft); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: #23241f; color: #c9c9c4;
  padding: 44px 0 30px; margin-top: 60px; font-size: 14px;
}
.site-footer a { color: #c9c9c4; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.site-footer p { margin: 0 0 6px; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.copyright {
  border-top: 1px solid #3a3b35; margin-top: 30px; padding-top: 18px;
  color: #8b8c86; font-size: 13px;
}
