/* ── 漢堡選單按鈕 ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.28s ease;
  border-radius: 1px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Drawer 遮罩 ── */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 20, 0.45);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.open {
  display: block;
  opacity: 1;
}

/* ── Drawer 本體 ── */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 78vw;
  max-width: 320px;
  background: var(--paper);
  z-index: 10000;
  padding: 24px 28px 48px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* ── 關閉按鈕 ── */
.mobile-menu-close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-bottom: 20px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 選單連結 ── */
.mobile-menu a {
  font-size: 16px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  letter-spacing: 0.06em;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover { color: var(--accent); padding-left: 8px; }
.mobile-menu a:visited { color: var(--ink); }

/* ── 聯絡資訊區塊 ── */
.mobile-menu-contact {
  margin-top: 32px;
  padding: 20px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}
.mobile-menu-contact p {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.mobile-menu-contact a {
  display: block;
  font-size: 15px !important;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent) !important;
  padding: 10px 0 !important;
  border-bottom: none !important;
  letter-spacing: 0.04em;
}
