/* ═══════════════════════════════════════════════════════════
   小作曲家藝術中心  ·  Global Typography & Spacing
   ═══════════════════════════════════════════════════════════ */

/* 1. Google Fonts
   Shippori Mincho B1 → 古典明體，標題用，繁中支援佳
   Cormorant Garamond → 英文裝飾標籤，義大利斜體有藝術感
   Noto Sans TC       → 內文，清晰易讀
   ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Shippori+Mincho+B1:wght@400;500;600&family=Noto+Serif+TC:wght@300;400;500&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* 2. 字體渲染優化
   ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering:          optimizeLegibility;
  font-feature-settings:   "kern" 1, "liga" 1;
}

/* 3. 內文 → Noto Sans TC
   ─────────────────────────────────────────────────────────── */
body {
  font-family:    'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-weight:    400;
  line-height:    1.8;
  letter-spacing: 0.02em;
  color: #f0ece4;
}

p {
  line-height:    1.85;
  letter-spacing: 0.025em;
  font-weight:    400;
}

a { font-family: 'Noto Sans TC', sans-serif; font-weight: 400; }
li { line-height: 1.8; }

/* 4. 標題 → Shippori Mincho B1（繁中古典明體）
   ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family:    'Shippori Mincho B1', 'Noto Serif TC', Georgia, serif;
  font-weight:    400;
  letter-spacing: 0.06em;
  line-height:    1.35;
  color: #f7f3eb;
}

h1 { letter-spacing: 0.08em; }
h2 { letter-spacing: 0.07em; }
h3 { letter-spacing: 0.05em; }

/* 5. 網站自訂大標題 class → Shippori Mincho B1
   ─────────────────────────────────────────────────────────── */
.sec-h,
.hero-h,
.shop-hero-h,
.detail-title,
.page-title,
.section-title,
.card-title,
.nav-logo,
.login-logo {
  font-family:    'Shippori Mincho B1', 'Noto Serif TC', serif;
  font-weight:    400;
  letter-spacing: 0.06em;
  line-height:    1.3;
}

/* 6. 英文裝飾小標（EYE TEXT）→ Cormorant Garamond 斜體
   ─────────────────────────────────────────────────────────── */
.sec-eye,
.hero-eye,
.shop-hero-eye,
.page-eye,
.detail-date,
[class*="-eye"] {
  font-family:    'Cormorant Garamond', Georgia, serif;
  font-style:     italic;
  font-weight:    300;
  letter-spacing: 0.22em;
}

/* 7. 商品名稱、卡片標題、活動標題
   ─────────────────────────────────────────────────────────── */
.prod-name,
.course-title,
.news-title,
.perf-row-title {
  font-family:    'Shippori Mincho B1', 'Noto Serif TC', serif;
  font-weight:    400;
  letter-spacing: 0.04em;
}

/* 8. 導覽列
   ─────────────────────────────────────────────────────────── */
nav,
.nav-links a,
.nav-item,
.nav-dropdown a {
  font-family:    'Noto Sans TC', sans-serif;
  font-weight:    400;
  letter-spacing: 0.04em;
}

/* ── Nav Dropdown (全站共用) ─────────────────────────────── */
.nav-links li { position: relative; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,22,0.97); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  padding: 10px 0; min-width: 150px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); z-index: 500;
  margin-top: 6px; /* 視覺間距 */
}
/* 橋接透明區域，讓滑鼠可以穿越間距到 dropdown */
.nav-links li:hover::after {
  content: ''; position: absolute;
  bottom: -10px; left: -20px; right: -20px; height: 10px;
}
.nav-links li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 10px 20px; font-size: .78rem;
  color: rgba(236,232,222,.62); white-space: nowrap;
  transition: all .15s; letter-spacing: .03em; text-decoration: none;
}
.nav-dropdown a:hover { color: #c4a265; background: rgba(196,162,101,.07); }
.nav-dropdown-sep {
  height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0;
}
.nav-dropdown-arrow {
  font-size: .58rem; margin-left: 4px;
  color: rgba(236,232,222,.35); display: inline-block; transition: transform .2s;
}
.nav-links li:hover .nav-dropdown-arrow { transform: rotate(180deg); color: rgba(196,162,101,.7); }

/* 9. 按鈕
   ─────────────────────────────────────────────────────────── */
button,
.btn,
.filter-btn,
.btn-login,
.btn-primary,
.cta-btn {
  font-family:    'Noto Sans TC', sans-serif;
  font-weight:    500;
  letter-spacing: 0.06em;
}

/* 10. 表單
    ─────────────────────────────────────────────────────────── */
input, textarea, select,
.form-input, .form-textarea {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* 11. 金額 / 數字 → Cormorant 讓數字更精緻
    ─────────────────────────────────────────────────────────── */
.prod-price,
.price-num,
.pricing-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   Mobile Hamburger + Side Drawer  (全站共用)
   ═══════════════════════════════════════════════════════════ */

/* 漢堡按鈕：桌機隱藏，手機顯示於左側 */
.mob-menu-btn {
  display:        none;
  background:     none;
  border:         none;
  color:          rgba(236,232,222,0.9);
  padding:        8px;
  cursor:         pointer;
  line-height:    1;
  letter-spacing: 0;
  flex-shrink:    0;
  font-size:      0;           /* 用圖示取代文字 */
}
/* 三橫線圖示 */
.mob-menu-btn::before {
  content:     '';
  display:     block;
  width:       22px;
  height:      2px;
  background:  currentColor;
  border-radius: 2px;
  box-shadow:  0 6px 0 currentColor, 0 12px 0 currentColor;
}

/* 側邊抽屜遮罩 */
.mob-overlay {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,0.6);
  z-index:    490;
  backdrop-filter: blur(2px);
}
.mob-overlay.open { display: block; }

/* 側邊抽屜本體 */
.mob-drawer {
  position:       fixed;
  top:            0;
  left:           0;
  bottom:         0;
  width:          300px;
  max-width:      85vw;
  background:     #0d0d1f;
  border-right:   1px solid rgba(196,162,101,0.15);
  z-index:        500;
  transform:      translateX(-100%);
  transition:     transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display:        flex;
  flex-direction: column;
  overflow-y:     auto;
}
.mob-drawer.open { transform: translateX(0); }

/* 抽屜頂部 logo + 關閉 */
.mob-drawer-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         22px 20px 18px;
  border-bottom:   1px solid rgba(255,255,255,0.08);
  flex-shrink:     0;
}
.mob-drawer-logo {
  font-family:    'Shippori Mincho B1','Noto Serif TC',serif;
  font-size:      1rem;
  letter-spacing: 0.06em;
  color:          #c4a265;
}
.mob-drawer-close {
  background:     none;
  border:         1px solid rgba(255,255,255,0.12);
  color:          rgba(236,232,222,0.6);
  font-size:      1rem;
  cursor:         pointer;
  line-height:    1;
  padding:        6px 9px;
  border-radius:  6px;
  letter-spacing: 0;
  transition:     all 0.2s;
}
.mob-drawer-close:hover { border-color: #c4a265; color: #c4a265; }

/* 抽屜連結清單 */
.mob-drawer-links {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  padding:        8px 0 16px;
  flex:           1;
}
.mob-drawer-links li { display: block; }
.mob-drawer-links a {
  display:         block;
  padding:         15px 24px;
  font-size:       0.95rem;
  font-weight:     400;
  color:           rgba(236,232,222,0.88);
  text-decoration: none;
  letter-spacing:  0.03em;
  border-bottom:   1px solid rgba(255,255,255,0.05);
  transition:      color 0.18s, background 0.18s, padding 0.18s;
  font-family:     'Noto Sans TC', sans-serif;
}
.mob-drawer-links a:hover,
.mob-drawer-links a:active {
  color:      #c4a265;
  background: rgba(196,162,101,0.06);
  padding-left: 28px;
}
/* 子分類（縮排、小字） */
.mob-drawer-links a.mob-sub {
  padding:      11px 24px 11px 40px;
  font-size:    0.82rem;
  color:        rgba(236,232,222,0.45);
  border-bottom-color: rgba(255,255,255,0.03);
}
.mob-drawer-links a.mob-sub:hover {
  color:        #c4a265;
  padding-left: 44px;
}

/* 分類標籤（店鋪用） */
.mob-drawer-cat-label {
  font-size:      0.65rem;
  letter-spacing: 0.12em;
  color:          rgba(196,162,101,0.55);
  padding:        14px 24px 6px;
  font-family:    'Noto Sans TC', sans-serif;
}

/* LINE 快捷按鈕（抽屜底部） */
.mob-drawer-line {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  background:      #06C755;
  color:           #fff;
  border:          none;
  border-radius:   50px;
  padding:         13px;
  font-size:       0.88rem;
  font-family:     'Noto Sans TC', sans-serif;
  font-weight:     500;
  text-decoration: none;
  cursor:          pointer;
  margin:          auto 20px 24px;
  flex-shrink:     0;
}
.mob-drawer-line:hover { opacity: 0.88; }

/* ── 手機版 nav 佈局 ─────────────────────────────────────── */
@media (max-width: 900px) {
  /* 顯示漢堡 */
  .mob-menu-btn {
    display:  block;
    order:    -1;          /* 移到最左 */
    margin-right: 4px;
  }

  /* nav 保持 fixed，logo 絕對置中 */
  nav {
    position: fixed !important;
    top:      0 !important;
    left:     0 !important;
    right:    0 !important;
  }

  /* 讓 logo 絕對置中（相對於 fixed nav） */
  .nav-logo {
    position:  absolute !important;
    left:      50% !important;
    transform: translateX(-50%) !important;
    margin:    0 !important;
    padding:   0 !important;
  }

  /* 隱藏桌機導覽連結與 LINE 按鈕 */
  .nav-links,
  .nav-line   { display: none !important; }
}

/* ── 手機 drawer 手風琴（樂器商城子項目） ───────────────── */
.mob-acc-row {
  display:     flex;
  align-items: stretch;
}
.mob-acc-row > a {
  flex:        1;
  border-bottom: none !important; /* 由 row 統一 border */
}
.mob-acc-row {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mob-acc-btn {
  background:   none;
  border:       none;
  border-left:  1px solid rgba(255,255,255,0.06);
  color:        rgba(196,162,101,0.6);
  font-size:    0.75rem;
  padding:      0 16px;
  cursor:       pointer;
  line-height:  1;
  transition:   color 0.2s, transform 0.25s;
  flex-shrink:  0;
  letter-spacing: 0;
}
.mob-acc-btn.open { transform: rotate(180deg); color: #c4a265; }
.mob-acc-btn:hover { color: #c4a265; }

.mob-sub-list {
  list-style: none;
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
}
.mob-sub-list.open { max-height: 400px; }

/* 分享按鈕列（聯絡單旁） */
.contact-share-row {
  display:    flex;
  gap:        10px;
  margin-top: 20px;
  flex-wrap:  wrap;
}
.btn-contact-share {
  display:        flex;
  align-items:    center;
  gap:            6px;
  background:     rgba(255,255,255,0.04);
  border:         1px solid rgba(255,255,255,0.1);
  border-radius:  50px;
  padding:        8px 16px;
  font-size:      0.78rem;
  color:          rgba(236,232,222,0.6);
  cursor:         pointer;
  transition:     all 0.2s;
  font-family:    'Noto Sans TC', sans-serif;
  font-weight:    400;
  text-decoration: none;
  white-space:    nowrap;
}
.btn-contact-share:hover           { border-color: rgba(255,255,255,0.25); color: rgba(236,232,222,0.9); }
.btn-contact-share.fb:hover        { border-color: #1877f2; color: #1877f2; }
.btn-contact-share.line-s:hover    { border-color: #06C755; color: #06C755; }
.btn-contact-share.trial:hover     { border-color: #c4a265; color: #c4a265; }
