/* ═══════════════════════════════════════════════
   羅森道長獨立站 · 藏藍配白配色體系
   藏藍主色 + 純白背景 + 淺藍點綴
   ═══════════════════════════════════════════════ */

:root {
  /* 八卦對應色 */
  --qian: #1B3A5C;        /* 乾 ☰ 藏藍 - 天(主色) */
  --kun: #ffffff;         /* 坤 ☷ 純白 - 地 */
  --zhen: #2d4a6a;        /* 震 ☳ 深藍 - 雷 */
  --xun: #3d5a7a;         /* 巽 ☴ 青藍 - 風 */
  --kan: #1B3A5C;         /* 坎 ☵ 藏藍 - 水(同主色) */
  --li: #5a8ab5;          /* 離 ☲ 淺藍 - 火(點綴) */
  --gen: #6b7a8f;         /* 艮 ☶ 岩藍灰 - 山 */
  --dui: #9bb3c8;         /* 兌 ☱ 銀藍 - 澤 */

  /* 實用變量 */
  --bg: #ffffff;          /* 純白 */
  --surface: #ffffff;     /* 卡片白 */
  --surface-alt: #f4f7fa; /* 次背景(極淺藍) */
  --text: #1B3A5C;        /* 藏藍 */
  --text-secondary: #3d5a7a;
  --text-muted: #7a8fa0;
  --border: #dce3ec;
  --accent: #5a8ab5;      /* 淺藍點綴 */
  --accent-hover: #4a7aa5;
  --success: #2f855a;
  --danger: #c53030;

  /* 字體 */
  --font-tc: "Noto Serif TC", "Source Han Serif TW", "Songti TC", "PingFang TC", serif;
  --font-sc: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "PingFang SC", serif;
  --font-en: "Noto Serif", "Cormorant Garamond", Georgia, serif;

  /* 陰陽魚 */
  --yin: #1a1a1a;
  --yang: #f5f3ef;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-tc);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* 簡體字體覆蓋 */
html[data-lang="cn"] body { font-family: var(--font-sc); }
html[data-lang="en-GB"] body, html[data-lang="en-US"] body { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════════ 八卦符號裝飾 ═══════════ */
.bagua-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.25rem;
}
.bagua-divider::before,
.bagua-divider::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to var(--direction, right), transparent, var(--accent), transparent);
}
.bagua-divider::before { --direction: right; }
.bagua-divider::after { --direction: left; }

/* 太極圖標 */
.taiji-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--yin) 50%, var(--yang) 50%);
  position: relative;
}
.taiji-icon::before,
.taiji-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.taiji-icon::before {
  top: 0; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, var(--yin) 40%, var(--yang) 41%);
}
.taiji-icon::after {
  bottom: 0; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, var(--yang) 40%, var(--yin) 41%);
}

/* ═══════════ 導航欄 ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 700; font-size: 1.125rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo .taiji-icon { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9375rem; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--accent); transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

/* 語言切換 */
.lang-select {
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); font-size: 0.8125rem; color: var(--text);
  cursor: pointer; font-family: inherit;
}
.lang-select:focus { outline: none; border-color: var(--accent); }

/* 購物車按鈕 */
.cart-btn {
  position: relative; padding: 0.5rem 0.875rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); cursor: pointer; transition: all 0.2s;
  font-family: inherit; font-size: 0.875rem;
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.6875rem; display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* ═══════════ Hero ═══════════ */
.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷";
  position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 3rem; color: var(--border); letter-spacing: 2rem;
  opacity: 0.3; white-space: nowrap;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90,138,181,0.08), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(27,58,92,0.04), transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 0.375rem 1rem;
  border: 1px solid var(--accent); border-radius: 999px;
  font-size: 0.8125rem; color: var(--accent); margin-bottom: 1.5rem;
  letter-spacing: 0.125rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700;
  line-height: 1.25; margin-bottom: 0.75rem;
}
.hero-slogan {
  font-size: clamp(0.875rem, 2vw, 1.0625rem); color: var(--accent);
  letter-spacing: 0.25rem; margin-bottom: 0.75rem;
  font-weight: 600;
}
.hero p {
  font-size: 1.0625rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════ 按鈕 ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8125rem 1.75rem; border-radius: 6px;
  font-size: 0.9375rem; font-weight: 500;
  cursor: pointer; transition: all 0.25s; border: none;
  font-family: inherit; text-align: center;
}
.btn-primary {
  background: var(--qian); color: #fff;
  border: 1px solid var(--qian);
}
.btn-primary:hover { background: #143050; color: #fff; border-color: #143050; }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-outline-accent {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ═══════════ 容器 ═══════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--surface-alt); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  text-align: center; margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 3rem; font-size: 0.9375rem;
}

/* ═══════════ 分類卡片 ═══════════ */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; text-align: center;
  transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden;
}
.category-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.3s;
}
.category-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon {
  font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent);
  display: flex; justify-content: center;
}
.category-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.category-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.category-count {
  display: inline-block; margin-top: 1rem;
  font-size: 0.75rem; color: var(--accent); font-weight: 600;
  letter-spacing: 0.0625rem;
}

/* ═══════════ 產品網格 ═══════════ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: all 0.3s;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.product-image {
  aspect-ratio: 4/3; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--accent); position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(90,138,181,0.06) 100%);
}
.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.625rem; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.0625rem;
}
.badge-new { background: var(--accent); color: #fff; }
.badge-private { background: var(--qian); color: var(--bg); }
.badge-course { background: var(--kan); color: #fff; }
.product-info { padding: 1.25rem 1.25rem 1.5rem; }
.product-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem;
  color: var(--text);
}
.product-desc {
  font-size: 0.8125rem; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-size: 1.125rem; font-weight: 700; color: var(--qian); }
.product-btn {
  padding: 0.5rem 1rem; font-size: 0.8125rem;
  background: var(--qian); color: var(--bg); border: none;
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.product-btn:hover { background: var(--accent); }

/* ═══════════ 信任錨 / 師傅簡介 ═══════════ */
.master-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; max-width: 1120px; margin: 0 auto;
}
.master-portrait {
  aspect-ratio: 675 / 1200; width: 100%; max-width: 400px;
  margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: var(--accent);
  position: relative; overflow: hidden;
}
.master-portrait img {
  width: 100%; height: 100%; object-fit: cover;
}
/* 師傅區雙圖輪播 */
.mc-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.mc-slide.active { opacity: 1; }
.mc-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center; z-index: 3;
}
.mc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.mc-dot.active { background: var(--accent); }
.master-portrait::before {
  content: "☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷";
  position: absolute; bottom: 1rem; left: 0; right: 0;
  font-size: 1rem; color: var(--border); letter-spacing: 0.5rem;
  z-index: 2;
}
.master-info h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.master-info p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9375rem; }
.master-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.master-tag {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.75rem; color: var(--text-secondary);
}

/* ═══════════ 產品詳情頁 ═══════════ */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: 1120px; margin: 0 auto; padding: 3rem 1.5rem;
}
.product-detail-image {
  aspect-ratio: 4/3; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; color: var(--accent);
}
.product-detail-info h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.product-detail-info .price { font-size: 1.75rem; font-weight: 700; color: var(--qian); margin: 1rem 0; }
.product-detail-info .desc { color: var(--text-secondary); margin-bottom: 1.5rem; }
.product-meta {
  border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.25rem;
}
.product-meta-item { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.875rem; }
.product-meta-item .label { color: var(--text-muted); }
.product-meta-item .value { color: var(--text); font-weight: 500; }

/* 加購區 */
.add-to-cart {
  display: flex; gap: 0.75rem; margin-top: 2rem; align-items: center;
}
.qty-input {
  width: 72px; padding: 0.625rem; text-align: center;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.9375rem; font-family: inherit; background: var(--surface);
}
.qty-input:focus { outline: none; border-color: var(--accent); }

/* ═══════════ 購物車 ═══════════ */
.cart-section { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto; gap: 1rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 0.75rem; background: var(--surface);
  align-items: center;
}
.cart-item-image {
  width: 80px; height: 80px; background: var(--surface-alt);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--accent);
}
.cart-item-info h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.cart-item-info .price { font-size: 0.875rem; color: var(--accent); }
.cart-item-qty {
  width: 60px; padding: 0.375rem; text-align: center;
  border: 1px solid var(--border); border-radius: 4px;
}
.cart-item-remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1rem; transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--surface-alt); padding: 1.5rem; border-radius: 8px;
  margin-top: 1.5rem;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 0.375rem 0; }
.cart-summary-total {
  display: flex; justify-content: space-between; padding-top: 1rem; margin-top: 0.75rem;
  border-top: 1px solid var(--border); font-weight: 700; font-size: 1.125rem;
}

.empty-cart {
  text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.empty-cart .taiji-icon { margin-bottom: 1rem; opacity: 0.5; }

/* ═══════════ Footer ═══════════ */
.footer {
  background: var(--qian); color: var(--kun);
  padding: 3rem 1.5rem 1.5rem; margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-brand .taiji-icon { background: linear-gradient(90deg, var(--kun) 50%, var(--qian) 50%); }
.footer-p { font-size: 0.8125rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer h4 { font-size: 0.875rem; margin-bottom: 1rem; letter-spacing: 0.125rem; color: #fff; }
.footer a { display: block; font-size: 0.8125rem; color: rgba(255,255,255,0.7); padding: 0.25rem 0; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.125rem;
}

/* ═══════════ Toast ═══════════ */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--qian); color: var(--bg); padding: 0.75rem 1.5rem;
  border-radius: 8px; font-size: 0.875rem; z-index: 200;
  animation: slideUp 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ═══════════ 動態裝飾動畫 ═══════════ */

/* Hero 背景漸變流動(藏藍→淺藍→藏藍) */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(27,58,92,0.08), rgba(90,138,181,0.10), rgba(27,58,92,0.08));
  background-size: 300% 300%;
  animation: bgFlow 8s ease-in-out infinite;
}
@keyframes bgFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero 底部八卦符號浮動(更明顯) */
.hero::before {
  animation: baguaFloat 4s ease-in-out infinite;
}
@keyframes baguaFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50% { transform: translateX(-50%) translateY(-12px); opacity: 0.6; }
}

/* 太極圖旋轉(8秒一圈,可感知) */
.taiji-icon {
  animation: taijiSpin 8s linear infinite;
}
@keyframes taijiSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 產品卡片圖示懸停效果 */
.product-card:hover .product-image {
  background: linear-gradient(135deg, rgba(27,58,92,0.04), rgba(90,138,181,0.08));
}
.product-image {
  transition: background 0.3s;
}

/* 分隔線八卦呼吸 */
.bagua-divider {
  animation: dividerBreath 3s ease-in-out infinite;
}
@keyframes dividerBreath {
  0%, 100% { letter-spacing: 0.25rem; }
  50% { letter-spacing: 0.6rem; }
}

/* 按鈕光暈脈衝(淺藍) */
.btn-accent {
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,138,181,0.35); }
  50% { box-shadow: 0 0 0 10px rgba(90,138,181,0); }
}

/* 卡片進場動畫(JS IntersectionObserver 觸發) */
.category-card, .product-card, .master-info, .master-portrait,
.master-tags, .product-detail-info, .product-detail-image {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.category-card.visible, .product-card.visible, .master-info.visible,
.master-portrait.visible, .master-tags.visible,
.product-detail-info.visible, .product-detail-image.visible {
  opacity: 1;
  transform: translateY(0);
}
.category-card:nth-child(1) { transition-delay: 0.05s; }
.category-card:nth-child(2) { transition-delay: 0.10s; }
.category-card:nth-child(3) { transition-delay: 0.15s; }
.category-card:nth-child(4) { transition-delay: 0.20s; }
.category-card:nth-child(5) { transition-delay: 0.25s; }
.category-card:nth-child(6) { transition-delay: 0.30s; }

/* ═══════════ 頁面 Hero ═══════════ */
.page-hero {
  padding: 5rem 0 2rem;
  text-align: center;
  background: var(--surface);
}

/* ═══════════ 搜索框 ═══════════ */
.search-btn {
  background: none; border: none; cursor: pointer; color: var(--text-secondary);
  padding: 0.375rem; border-radius: 8px; display: flex; align-items: center;
  transition: background 0.2s, color 0.2s;
}
.search-btn:hover { background: var(--surface-alt); color: var(--qian); }

.search-box {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(27,58,92,0.12);
  padding: 0.75rem; display: none; z-index: 100;
}
.search-box.active { display: block; }
.search-box input {
  width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.875rem; background: var(--surface-alt);
  color: var(--text); font-family: inherit;
}
.search-box input:focus { outline: none; border-color: var(--qian); background: var(--surface); }

.search-results { max-height: 360px; overflow-y: auto; margin-top: 0.5rem; }
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.search-result-item:hover { background: var(--surface-alt); }
.search-result-item img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
}
.search-result-icon {
  width: 40px; height: 40px; background: var(--surface-alt);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--accent);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-size: 0.8125rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.search-no-result { padding: 1rem; text-align: center; color: var(--text-muted); font-size: 0.8125rem; }

/* ═══════════ 評價區 ═══════════ */
.reviews-section { padding: 4rem 0; background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,58,92,0.08); }
.review-stars { color: var(--accent); font-size: 0.875rem; margin-bottom: 0.5rem; }
.review-text { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.75rem; }
.review-author { font-size: 0.75rem; color: var(--text-muted); }
.review-product { font-size: 0.6875rem; color: var(--qian); font-weight: 600; margin-bottom: 0.25rem; }

/* ═══════════ FAQ ═══════════ */
.faq-section { padding: 4rem 0; }
.faq-list { max-width: 720px; margin: 2rem auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; background: none; border: none; padding: 1rem 0;
  font-size: 0.9375rem; color: var(--text); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; font-family: inherit;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--qian); }
.faq-q::after {
  content: "+"; font-size: 1.25rem; color: var(--accent);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.9;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 0 1rem; }

/* ═══════════ 響應式 ═══════════ */
@media (max-width: 900px) {
  .master-section, .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 1rem 3rem; }
  .hero::before { font-size: 1.75rem; letter-spacing: 1rem; }
  .section { padding: 3rem 0; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-qty, .cart-item-remove { margin-top: 0.5rem; }
}

/* ═══════════ 響應式強化 + 人像/花絮 ═══════════ */
.nav-logo span { white-space: nowrap; }
.cart-btn { white-space: nowrap; }
.about-portrait {
  width: 100%; max-width: 340px; margin: 0 auto 2rem;
  aspect-ratio: 675 / 1200;
  border-radius: 12px; overflow: hidden; background: var(--surface-alt);
  box-shadow: 0 8px 24px rgba(27,58,92,0.12);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 4rem; color: rgba(255,255,255,0.85);
}
.portrait-fallback::after { content: "☯"; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 0.5rem; }
.gallery-item { margin: 0; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--surface-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .nav-inner { gap: 0.5rem; }
  .nav-actions { gap: 0.5rem; }
  .nav-logo span { font-size: 0.8125rem; }
  .lang-select { font-size: 0.75rem; padding: 0.3rem 0.4rem; }
  .cart-btn { padding: 0.4rem 0.6rem; font-size: 0.8125rem; }
  .hero p { font-size: 0.95rem; }
  .hero-slogan { letter-spacing: 0.15rem; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .nav-logo span { display: none; }
}
