﻿/* ══════════════════════════════════════════════════════════
   金華山銀樓  –  WordPress 風格仿製 (Aether 主題調色)
   主色系：暖棕 #9C5E3F | 米白 #fffcf9 | 淡米 #f7eee5 | 深灰 #404350
   字體：Albert Sans (無襯線) + Alegreya (有襯線標題)
   ══════════════════════════════════════════════════════════ */

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

:root {
  --primary:    #9C5E3F;
  --primary-dk: #7a4830;
  --primary-lt: #c8846a;
  --bg:         #fffcf9;
  --bg-alt:     #f7eee5;
  --bg-dark:    #404350;
  --text:       #404350;
  --text-dim:   #7a7888;
  --border:     #ddd3c7;
  --sell:       #9C5E3F;
  --buy:        #3a7a5a;
  --up:         #c0392b;
  --down:       #27ae60;
  --neutral:    #888;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(156,94,63,0.10);
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Albert Sans', 'Microsoft JhengHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 跑馬燈 ─────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--bg-dark);
  color: #e8e6ef;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 2.2rem;
}

.ticker-label {
  background: var(--primary);
  color: #fff;
  padding: 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-track {
  white-space: nowrap;
  font-size: 0.82rem;
  animation: ticker-scroll 60s linear infinite;
  padding-left: 2rem;
  color: #e8e6ef;
}

.ticker-track a {
  color: #f5d9c8;
  text-decoration: none;
}

.ticker-track a:hover {
  color: #fff;
  text-decoration: underline;
}

@keyframes ticker-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ── 頁首 ─────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(156,94,63,0.12);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: 'Alegreya', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.site-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover { background: var(--bg-alt); color: var(--primary); text-decoration: none; }

.site-nav .nav-admin {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
}
.site-nav .nav-admin:hover { background: var(--primary-dk); }

.datetime-bar {
  background: var(--bg-alt);
  padding: 0.3rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.update-label { color: var(--primary); font-weight: 600; }

/* ── Hero 橫幅 ──────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, #c8846a 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 0.88rem;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.15);
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.hero-title {
  font-family: 'Alegreya', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* ── 共用 section 容器 ──────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Alegreya', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.section-desc.en {
  font-family: 'Alegreya', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary-lt);
}

/* ── 即時報價區塊 ─────────────────────────────────────── */
.quote-section {
  background: var(--bg);
}

.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.quote-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--bg-alt);
}

.quote-card-icon { font-size: 1.2rem; }

.quote-card-header h3 {
  font-family: 'Alegreya', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.published-at {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: auto;
}

/* ── 牌告價雙欄 ──────────────────────────────────────── */
.price-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .price-tables { grid-template-columns: 1fr; }
}

/* ── 表格 ─────────────────────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  font-size: 0.85rem;
}

.price-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  color: var(--text);
}

.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--bg-alt); }
.price-table td:first-child { text-align: left; color: var(--text-dim); font-weight: 500; }

.sell-head { color: var(--sell) !important; }
.buy-head  { color: var(--buy)  !important; }

.sell { color: var(--sell); font-weight: 600; }
.buy  { color: var(--buy);  font-weight: 600; }

.loading { color: var(--text-dim); font-size: 0.85rem; font-style: italic; }

/* ── 漲跌標籤 ─────────────────────────────────────────── */
.up      { color: var(--up);   font-weight: 600; }
.down    { color: var(--down); font-weight: 600; }
.neutral { color: var(--neutral); }

/* ── 匯率卡 ───────────────────────────────────────────── */
.forex-card { max-width: 480px; }
.hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.6rem; }

/* ── 數字閃爍動畫 ─────────────────────────────────────── */
@keyframes flash-up   { 0%,100%{background:transparent} 50%{background:rgba(192,57,43,0.15)} }
@keyframes flash-down { 0%,100%{background:transparent} 50%{background:rgba(39,174,96,0.15)} }
.flash-up   { animation: flash-up   0.6s ease; }
.flash-down { animation: flash-down 0.6s ease; }

/* ── 服務範圍 ──────────────────────────────────────────── */
.services-section { background: var(--bg-dark); }

.services-section .section-title { color: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.service-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background 0.2s, transform 0.2s;
}

.service-item:hover {
  background: rgba(156,94,63,0.25);
  transform: translateY(-2px);
}

.service-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }

.service-item h4 {
  font-family: 'Alegreya', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f7eee5;
  margin-bottom: 0.2rem;
}

.service-en {
  font-size: 0.78rem;
  color: #e8a88c;
  font-style: italic;
  margin-bottom: 0.6rem;
}

.service-item p:last-child {
  font-size: 0.88rem;
  color: #dedad0;
  line-height: 1.6;
}

/* ── 品牌故事 ──────────────────────────────────────────── */
.philosophy-section { background: var(--bg-alt); }

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 720px) {
  .philosophy-inner { grid-template-columns: 1fr; }
}

.philosophy-text .section-title { text-align: left; }

.philosophy-text p {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 0.95rem;
}

.philosophy-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 120px;
}

.badge-num {
  font-family: 'Alegreya', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.badge-num span { font-size: 1.2rem; }

.badge-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ── 聯絡資訊 ──────────────────────────────────────────── */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; }

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.contact-val {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-map {
  margin-top: 1.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
}

.contact-map-cta {
  padding: 1rem;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* ── 頁尾 ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 1.8rem 1rem;
  font-size: 0.82rem;
  line-height: 2;
}

.site-footer a { color: var(--primary-lt); }
.site-footer a:hover { color: #fff; }

/* ── 後台登入 ─────────────────────────────────────────── */
.login-box {
  max-width: 360px;
  margin: 8rem auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.login-box h2 { color: var(--primary); text-align: center; margin-bottom: 1.5rem; font-family:'Alegreya',serif; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; color: var(--text-dim); margin-bottom: 0.3rem; font-size: 0.85rem; }
.form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(156,94,63,0.15); }

/* ── 按鈕 ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }

.error-msg { color: var(--up); font-size: 0.85rem; margin-top: 0.5rem; text-align: center; }

/* ── 響應式 ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════════
   子頁面共用樣式（關於 / 交通資訊）
   ══════════════════════════════════════════════════════════ */

/* ── 頁面標題橫幅 ─────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, #c8846a 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-banner-inner { max-width: 700px; margin: 0 auto; }
.page-banner-title {
  font-family: 'Alegreya', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.page-banner-sub {
  font-style: italic;
  opacity: 0.85;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ── 子頁面內容 ───────────────────────────────────────── */
.page-content-section { background: var(--bg); }

.nav-active {
  background: var(--bg-alt) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* ── 關於頁：故事 ─────────────────────────────────────── */
.about-story {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .about-story { grid-template-columns: 1fr; }
}
.about-story-text .section-title { margin-bottom: 1rem; }
.about-story-text p {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.about-story-badges {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 130px;
}

/* ── 關於頁：時間軸 ───────────────────────────────────── */
.timeline { margin-top: 2rem; }
.timeline-list {
  position: relative;
  padding-left: 2rem;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.46rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-family: 'Alegreya', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 0.1rem;
  text-align: right;
}
.timeline-content h4 {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── 交通頁：版面 ─────────────────────────────────────── */
.traffic-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .traffic-layout { grid-template-columns: 1fr; }
}

.traffic-info { display: flex; flex-direction: column; gap: 1.8rem; }

.traffic-block { }
.traffic-block-title {
  font-family: 'Alegreya', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.traffic-address {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.traffic-tel {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.traffic-tel a { color: var(--primary); }
.traffic-tel a:hover { color: var(--primary-dk); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.hours-table td:first-child { color: var(--text-dim); width: 4rem; }
.hours-table tr.closed td { color: var(--text-dim); font-style: italic; }

.traffic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.traffic-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.route-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
}
.route-badge.mrt   { background: #e84393; }
.route-badge.train { background: #4a90d9; }
.route-badge.bus   { background: #5a9a5a; }

.traffic-map { }
.map-cta {
  margin-top: 1rem;
  text-align: center;
}
/* ══════════════════════════════════════════════════════════
   Inside Our Store 商店照片畫廊
   ══════════════════════════════════════════════════════════ */
.store-gallery-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.store-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

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

@media (max-width: 500px) {
  .store-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}

.store-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.store-gallery-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow);
}

.store-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.store-gallery-item:hover .store-gallery-img-wrap img {
  transform: scale(1.04);
}

.store-gallery-caption {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}
/* ── 頁首 LOGO ────────────────────────────────────────── */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-branding-text {
  display: flex;
  flex-direction: column;
}
/* ===== Retrieve Page ===== */
.retrieve-intro { display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; align-items:start; margin-bottom:2.5rem; }
@media(max-width:768px){ .retrieve-intro{ grid-template-columns:1fr; } }
.retrieve-notice { padding-left:1.2rem; margin:.8rem 0 0; color:var(--text-muted,#6b5c4c); font-size:.9rem; line-height:1.9; }
.ref-card { background:var(--bg-warm,#fdf8f3); border:1px solid var(--border-color,#e8ddd2); border-radius:12px; padding:1.5rem 1.8rem; }
.ref-title { font-size:1rem; font-weight:600; color:var(--accent,#8b6914); margin-bottom:1rem; }
.ref-row { display:flex; justify-content:space-between; align-items:center; padding:.55rem 0; border-bottom:1px dashed var(--border-color,#e8ddd2); font-size:.95rem; }
.ref-row:last-of-type { border-bottom:none; }
.ref-val { font-weight:700; color:var(--text-dark,#3a2e1e); font-size:1.05rem; }
.ref-updated { margin-top:.8rem; font-size:.8rem; color:var(--text-muted,#6b5c4c); }
.calc-tabs-wrap { background:var(--bg-warm,#fdf8f3); border:1px solid var(--border-color,#e8ddd2); border-radius:14px; overflow:hidden; margin-bottom:2.5rem; }
.calc-tab-btns { display:flex; flex-wrap:wrap; background:var(--bg-section,#f5ede0); border-bottom:1px solid var(--border-color,#e8ddd2); }
.calc-tab-btn { flex:1; min-width:100px; padding:.75rem .5rem; border:none; background:transparent; font-size:.9rem; cursor:pointer; color:var(--text-muted,#6b5c4c); transition:background .2s,color .2s; }
.calc-tab-btn:hover,.calc-tab-btn.active { background:var(--accent,#8b6914); color:#fff; font-weight:600; }
.calc-tab-panel { display:none; padding:2rem; }
.calc-tab-panel.active { display:block; }
.calc-panel-title { font-size:1.1rem; font-weight:700; color:var(--text-dark,#3a2e1e); margin-bottom:1.5rem; }
.calc-panel-note { font-size:.85rem; color:var(--text-muted,#6b5c4c); font-weight:400; }
.calc-form { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1.2rem; }
.calc-form label { display:flex; flex-direction:column; gap:.4rem; font-size:.88rem; color:var(--text-muted,#6b5c4c); }
.calc-form label input { padding:.55rem .8rem; border:1px solid var(--border-color,#e8ddd2); border-radius:8px; font-size:1rem; color:var(--text-dark,#3a2e1e); background:#fff; }
.calc-result-row { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; background:var(--bg-section,#f5ede0); border-radius:10px; padding:1rem 1.4rem; font-size:.95rem; font-weight:600; color:var(--text-dark,#3a2e1e); }
.calc-result { font-size:1.5rem; font-weight:700; color:var(--accent,#8b6914); }
.weight-converter { background:#fff; border:1px solid var(--border-color,#e8ddd2); border-radius:12px; padding:1.8rem; margin-bottom:2.5rem; }
.section-subtitle { font-size:1.1rem; font-weight:700; color:var(--text-dark,#3a2e1e); margin-bottom:1.2rem; }
.wc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1rem; margin-bottom:.8rem; }
.wc-grid label { display:flex; flex-direction:column; gap:.35rem; font-size:.88rem; color:var(--text-muted,#6b5c4c); }
.wc-grid label input { padding:.5rem .8rem; border:1px solid var(--border-color,#e8ddd2); border-radius:8px; font-size:1rem; }
.wc-note { font-size:.82rem; color:var(--text-muted,#6b5c4c); }
.retrieve-guide { margin-bottom:2.5rem; }
.guide-steps { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:1.2rem; }
.guide-steps li { display:flex; gap:1.2rem; align-items:flex-start; background:var(--bg-warm,#fdf8f3); border-radius:12px; padding:1.2rem 1.5rem; }
.guide-num { min-width:2rem; height:2rem; border-radius:50%; background:var(--accent,#8b6914); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; font-size:.95rem; }
.guide-steps li p { margin:.3rem 0 0; font-size:.9rem; color:var(--text-muted,#6b5c4c); }
.retrieve-items { margin-bottom:2.5rem; }
.items-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1.2rem; margin-top:1rem; }
.item-card { background:var(--bg-warm,#fdf8f3); border:1px solid var(--border-color,#e8ddd2); border-radius:12px; padding:1.2rem 1rem; text-align:center; font-weight:600; font-size:.95rem; color:var(--text-dark,#3a2e1e); }
.item-card p { margin:.5rem 0 0; font-weight:400; font-size:.82rem; color:var(--text-muted,#6b5c4c); }
.retrieve-cta { text-align:center; padding:2.5rem 1rem; }
.retrieve-cta p { font-size:1rem; color:var(--text-muted,#6b5c4c); margin-bottom:1.2rem; }

/* ══ 技術線圖區塊 ══════════════════════════════════════════ */
.chart-section { background: var(--bg); padding: 3rem 0; }
.chart-tab-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.chart-tab-btn {
  padding: .5rem 1.4rem; border-radius: 999px; border: 2px solid var(--border);
  background: transparent; color: var(--text); font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.chart-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.chart-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chart-panels { position: relative; }
.chart-panel { display: none; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 560px; }
.chart-panel.active { display: block; }
.chart-note { margin-top: .8rem; font-size: .8rem; color: var(--text-dim); text-align: right; }

/* ── 匯率表 & 盤面報價 雙欄 ── */
.market-widgets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

@media (max-width: 800px) {
  .market-widgets-row { grid-template-columns: 1fr; }
}

.market-widget-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.market-widget-title {
  background: var(--bg-alt);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   產品展示頁
   ══════════════════════════════════════════════════════════ */
.products-page-section { background: var(--bg); }

/* 分類篩選列 */
.prod-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.prod-filter-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.prod-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.prod-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 商品格子 */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

@media (max-width: 500px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

.prod-loading, .prod-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
  font-style: italic;
}

/* 商品卡 */
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(156,94,63,0.18); }

.prod-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.prod-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.prod-card:hover .prod-card-img-wrap img { transform: scale(1.05); }
.prod-card-img-wrap.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--border);
}
.prod-card-img-wrap.no-img::after { content: '💍'; }

.prod-card-body {
  padding: 0.9rem 1rem;
}
.prod-card-cat {
  font-size: 0.72rem;
  color: var(--primary-lt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.prod-card-name {
  font-family: 'Alegreya', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.prod-card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox */
.prod-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.prod-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.prod-lightbox-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 8px 48px rgba(0,0,0,0.3);
}
@media (min-width: 600px) {
  .prod-lightbox-box { flex-direction: row; }
}
.prod-lb-close {
  position: absolute;
  top: 0.7rem; right: 0.8rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2rem; height: 2rem;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.prod-lb-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .prod-lb-img { width: 280px; max-height: 100%; }
}
.prod-lb-body { padding: 1.5rem; overflow-y: auto; }
.prod-lb-cat { font-size: 0.75rem; color: var(--primary-lt); font-weight: 600; margin-bottom: 0.4rem; }
.prod-lb-title { font-family: 'Alegreya', serif; font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.prod-lb-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; }

/* 商品後台 tabs */
.prod-admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}
.prod-admin-tab {
  padding: 0.45rem 1.2rem;
  border-radius: 6px 6px 0 0;
  border: none;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.prod-admin-tab.active, .prod-admin-tab:hover { background: var(--primary); color: #fff; }
