/* ============================================================
   09. 汉堡抽屉
   ============================================================ */
.nav-backdrop {
  position: fixed; inset: 0; z-index: var(--z-drawer-backdrop);
  background: var(--overlay); opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nav-backdrop.is-open { opacity: 1; }

.nav-drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: min(380px, 90vw);
  z-index: var(--z-drawer); display: flex; flex-direction: column;
  padding: var(--space-lg);
  overflow-y: auto;
  border-start-start-radius: var(--radius-2xl);
  border-end-start-radius: var(--radius-2xl);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  transform: translateX(102%);
  transition: transform 400ms var(--ease-ios);
  will-change: transform;
}
[dir="rtl"] .nav-drawer {
  transform: translateX(-102%);
  border-start-start-radius: 0; border-end-start-radius: 0;
  border-start-end-radius: var(--radius-2xl); border-end-end-radius: var(--radius-2xl);
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-md); margin-bottom: var(--space-lg);
}
.nav-drawer__brand { display: flex; align-items: center; gap: 12px; }
.nav-drawer__brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #007aff, #a855f7);
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}
.nav-drawer__brand-text { display: flex; flex-direction: column; }
.nav-drawer__brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-drawer__brand-tag { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 2px; }

.drawer-section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-tertiary);
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
  margin-top: var(--space-sm);
}

.drawer-item {
  display: flex; align-items: center; gap: var(--space-md);
  width: 100%; padding: 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease-ios),
              background-color var(--dur-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.drawer-item:hover { background: var(--surface-muted); }
.drawer-item.is-active { background: var(--accent-soft); }
.drawer-item.is-active .drawer-item__title { color: var(--accent); }
[data-mode="premium"] .drawer-item:active { transform: scale(0.97); background: var(--accent-soft); }

.drawer-item__icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.drawer-item__icon svg { width: 20px; height: 20px; }

.drawer-item__content { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.drawer-item__title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.drawer-item__desc { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 2px; }

.drawer-item__chevron {
  flex: 0 0 auto; color: var(--text-tertiary);
  display: inline-flex; align-items: center;
  transition: transform var(--dur-slow) var(--ease-ios), color var(--dur-base) var(--ease-out);
}
.drawer-item:hover .drawer-item__chevron { color: var(--accent); }
[data-mode="premium"] .drawer-item:hover .drawer-item__chevron { transform: translateX(3px); }
[dir="rtl"] .drawer-item:hover .drawer-item__chevron { transform: translateX(-3px); }
[dir="rtl"] .drawer-item__chevron svg { transform: scaleX(-1); }

.nav-drawer__footer {
  margin-top: auto; padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
}
.drawer-social {
  flex: 1 1 auto; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-slow) var(--ease-ios),
              color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
.drawer-social:hover { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
[data-mode="premium"] .drawer-social:active { transform: scale(0.95); }

