@charset "utf-8";
/* ==========================================================================
   Showeasy Asia — H 型海報架頁面 HTML5 版面樣式
   結構：頁首 Banner → 漢堡式產品目錄 → 主內容產品格線 → 頁尾聯絡及地址
   產品格線：< 360px 一欄　360–900px 兩欄　> 900px 三欄
   ========================================================================== */

:root {
  --color-brand: #89949f;
  --color-brand-dark: #5f6a75;
  --color-text: #333;
  --color-muted: #666;
  --color-heading: #003366;
  --color-price: #f00;
  --color-accent: #990000;
  --color-border: #dcdcdc;
  --color-bg: #fff;
  --color-bg-soft: #f6f7f8;
  --radius: 6px;
  --max-width: 1280px;
  --font-base: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Heiti TC",
               "Noto Sans TC", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a { color: #0b5fa5; text-decoration: none; }
a:hover,
a:focus { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; color: var(--color-heading); }

ul { margin: 0; padding: 0; list-style: none; }

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

/* 無障礙：跳至主要內容 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ============ 頁首 ============ */
.site-header { border-bottom: 3px solid var(--color-brand); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.logo { flex: 1 1 auto; min-width: 0; }
.logo img { width: 100%; max-width: 990px; height: auto; }

.header-contact-btn {
  flex: 0 0 auto;
  background: var(--color-brand);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}
.header-contact-btn:hover { background: var(--color-brand-dark); text-decoration: none; }

/* ============ 漢堡式產品目錄 ============ */
.topbar {
  background: var(--color-brand);
  position: relative;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* 隱藏的 checkbox：純 CSS 控制開合，無需 JavaScript */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hamburger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  user-select: none;
  background: rgba(0, 0, 0, .12);
  flex: 0 0 auto;
}
.hamburger:hover { background: rgba(0, 0, 0, .25); }

/* 三條線圖示 */
.hamburger-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: background .2s ease;
}
.hamburger-bars::before,
.hamburger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, top .25s ease;
}
.hamburger-bars::before { top: -7px; }
.hamburger-bars::after { top: 7px; }

/* 展開時圖示變為 X */
.nav-toggle:checked ~ .hamburger .hamburger-bars { background: transparent; }
.nav-toggle:checked ~ .hamburger .hamburger-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .hamburger .hamburger-bars::after  { top: 0; transform: rotate(-45deg); }

/* 鍵盤操作可見焦點 */
.nav-toggle:focus-visible ~ .hamburger { outline: 3px solid #fff; outline-offset: 2px; }

.topbar-logo { flex: 1 1 auto; min-width: 0; }
.topbar-logo img { width: 100%; max-width: 990px; height: auto; }

/* 目錄面板：預設收起 */
.cat-nav {
  flex: 1 1 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.nav-toggle:checked ~ .cat-nav { max-height: 1200px; }

.cat-nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px;
  padding: 10px 0 14px;
}

.cat-nav a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, .18);
  border-radius: 4px;
  font-size: 15px;
}
.cat-nav a:hover,
.cat-nav a:focus {
  background: #fff;
  color: var(--color-brand-dark);
  text-decoration: none;
}
.cat-nav a[aria-current="page"] {
  background: #fff;
  color: var(--color-accent);
  font-weight: 700;
}

/* ============ 版面主體 ============ */
.layout {
  padding-top: 20px;
  padding-bottom: 40px;
}

.content { min-width: 0; }

.intro {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-brand);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.intro h1 { font-size: 24px; color: var(--color-accent); }
.intro .subtitle { font-size: 20px; color: var(--color-heading); margin-bottom: .6em; }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.anchor-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--color-brand);
  border-radius: 20px;
  font-size: 15px;
  color: var(--color-brand-dark);
}
.anchor-nav a:hover,
.anchor-nav a:focus {
  background: var(--color-brand);
  color: #fff;
  text-decoration: none;
}

/* ============ 產品格線（預設 > 900px：三欄） ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  scroll-margin-top: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}

.product-media {
  margin: 0 0 12px;
  text-align: center;
}
.product-media img {
  margin: 0 auto;
  max-height: 300px;
  width: auto;
}
.product-media--dual {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-title {
  font-size: 19px;
  margin-bottom: .35em;
  color: #000;
}
.product-subtitle {
  font-size: 17px;
  margin: .8em 0 .3em;
  color: #000;
}
.product-variant { font-weight: 400; font-size: 16px; color: var(--color-muted); }

.badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
}

.product-desc { margin: 0 0 .5em; font-size: 16px; }
.product-desc em { font-style: normal; color: var(--color-accent); }

.spec-list {
  margin: 0 0 .8em;
  font-size: 15px;
  color: #444;
}
.spec-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 3px;
}
.spec-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-brand);
}

.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-price);
  margin: 0 0 .6em;
}
.price s { font-size: 16px; font-weight: 400; color: var(--color-muted); }
.price-label { font-size: 17px; }

.option-list {
  margin: 0 0 1em;
  font-size: 15px;
  border-top: 1px dashed var(--color-border);
  padding-top: 8px;
}
.option-list li { margin-bottom: 4px; }

.card-actions {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.order-link img { display: inline-block; }
.back-top { font-size: 14px; color: var(--color-muted); }

/* ============ 頁尾：聯絡資料及地址 ============ */
.site-footer {
  background: var(--color-brand);
  color: #fff;
  padding: 28px 0 16px;
  font-size: 15px;
  border-top: 4px solid var(--color-brand-dark);
}
.site-footer a { color: #fff; text-decoration: underline; }

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 17px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 6px;
}

.contact-list { margin: 0; }
.contact-list dt { font-weight: 700; margin-top: 8px; }
.contact-list dd { margin: 0 0 2px; }

.footer-address { font-style: normal; line-height: 1.7; }
.footer-links { margin: 12px 0 0; }

.footer-figure { margin: 0 0 10px; }
.footer-figure img { border-radius: 4px; }

.copyright {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px;
  opacity: .9;
  text-align: center;
}

/* ============ 浮動 WhatsApp 按鈕 ============ */
.float-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.float-whatsapp:hover { background: #1da851; text-decoration: none; }

/* ==========================================================================
   響應式斷點
   > 900px：三欄（上方預設值）
   360px – 900px：兩欄
   < 360px：一欄
   ========================================================================== */

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hamburger { order: 1; }
  .topbar-logo { order: 2; flex: 1 1 100%; }
  .cat-nav { order: 3; }

  .intro h1 { font-size: 21px; }
  .intro .subtitle { font-size: 18px; }
  .product-title { font-size: 18px; }
  .price { font-size: 20px; }
  .spec-list, .option-list { font-size: 14px; }
}

@media (max-width: 359px) {
  body { font-size: 15px; }

  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card { padding: 12px; }
  .product-media img { max-height: 260px; }

  .intro { padding: 12px 14px; }
  .intro h1 { font-size: 18px; }
  .intro .subtitle { font-size: 17px; }

  .header-inner { justify-content: center; }
  .header-contact-btn { width: 100%; text-align: center; }
  .hamburger { width: 100%; justify-content: center; }
  .cat-nav ul { grid-template-columns: minmax(0, 1fr); }

  .float-whatsapp { padding: 10px 14px; font-size: 14px; }
}

/* ============ 列印 ============ */
@media print {
  .topbar, .float-whatsapp, .anchor-nav, .card-actions, .header-contact-btn { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { break-inside: avoid; border-color: #999; }
  .site-footer { background: none; color: #000; border-top: 1px solid #999; }
  .site-footer a { color: #000; }
}
