/* SJMKSYSTEM Mobile 전용 — v6 00-4 좌표: MobileTopBar 56 / MobileDrawer 284 / MobileBottomAction 60 (393x852 기준)
   Desktop CSS 수정 금지 원칙: 이 파일은 Mobile 전용이다. */

body.site-mobile { padding-bottom: 60px; /* 하단 고정 버튼 공간 */ }

/* ===== 상단바 (56px: 햄버거/로고/언어) ===== */
.m-topbar {
  position: sticky; top: 0; z-index: 100; height: 56px;
  background: var(--shell); color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border-bottom: 1px solid var(--shell-border);
}
.m-hamburger {
  width: 40px; height: 40px; flex: none; border: 0; background: transparent; color: #E2E8F0;
  font-size: 22px; cursor: pointer; border-radius: 9px; min-height: 44px; min-width: 44px;
}
.m-hamburger:active { background: rgba(255, 255, 255, .1); }
.m-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: 1; overflow: hidden; }
.m-logo .logo-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; font-size: 14px;
}
.m-logo .logo-text { color: #fff; font-weight: 700; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 좌측 Drawer (284px, 기본 닫힘 → 좌측 슬라이드) ===== */
.m-drawer-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 23, .6);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.m-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 201; width: 284px;
  background: linear-gradient(180deg, var(--shell) 0%, var(--shell-2) 100%);
  color: var(--shell-text); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .22s ease;
}
body.drawer-open .m-drawer { transform: translateX(0); }
body.drawer-open .m-drawer-overlay { opacity: 1; pointer-events: auto; }
.m-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--shell-border); }
.m-drawer-close { border: 0; background: transparent; color: #94A3B8; font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }
.m-drawer-nav { flex: 1; overflow-y: auto; padding: 10px 12px; }
.m-drawer-nav a {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 3px;
  border-radius: 10px; color: var(--shell-text); text-decoration: none; font-size: 15px; min-height: 44px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-drawer-nav a .ico { width: 20px; text-align: center; flex: none; }
.m-drawer-nav a.active { background: linear-gradient(135deg, var(--primary), #3B82F6); color: #fff; font-weight: 700; }
.m-drawer-support { margin: 12px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--shell-border); font-size: 12.5px; }
.m-drawer-support .t { color: #fff; font-weight: 700; margin-bottom: 3px; }
.m-drawer-support .btn { width: 100%; margin-top: 9px; padding: 9px; font-size: 13px; }
.m-drawer-foot { padding: 12px 16px; font-size: 11px; color: #64748B; border-top: 1px solid var(--shell-border); }
.m-drawer .lang-select { padding: 0 16px 10px; }
.m-drawer .lang-select select { width: 100%; }

/* ===== 히어로 ===== */
.m-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--shell); color: #fff; padding: 30px 18px 34px;
}
.m-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(280px 180px at 85% 20%, rgba(37, 99, 235, .4), transparent 65%),
    linear-gradient(135deg, var(--shell) 40%, var(--shell-3) 100%);
}
.m-hero h1 { font-size: 22.5px; line-height: 1.35; margin: 0 0 10px; font-weight: 800; }
.m-hero p { color: #AAB8CE; font-size: 13.5px; margin: 0 0 18px; }
.m-hero .hero-actions { display: flex; flex-direction: column; gap: 9px; }
.m-hero .hero-actions .btn { width: 100%; min-height: 48px; }

/* ===== 본문 ===== */
.m-content { padding: 18px 14px 24px; }
.m-section-title { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.m-section-title h2 { font-size: 16.5px; margin: 0; display: flex; gap: 8px; align-items: center; }
.m-section-title h2 .bar { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--primary-2)); }
.m-section-title a { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.m-card-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.m-card-list .pcard { padding: 16px; }
.m-card-list .pcard .pcard-desc { min-height: 0; }
.m-panel-stack { display: flex; flex-direction: column; gap: 12px; }

/* ===== 하단 고정 액션 (60px: 구매/라이선스 + 고객지원) ===== */
.m-bottom-action {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 60px;
  display: flex; gap: 10px; padding: 8px 12px;
  background: rgba(11, 18, 32, .97); border-top: 1px solid var(--shell-border);
  backdrop-filter: blur(6px);
}
.m-bottom-action .btn { flex: 1; min-height: 44px; font-size: 14px; }

/* ===== 페이지 공통 ===== */
.m-page-head h1 { font-size: 19px; margin: 2px 0 6px; }
.m-page-head p { color: var(--text-2); font-size: 13px; margin: 0 0 14px; }
.m-filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.m-filter-bar input, .m-filter-bar select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; font-family: inherit; flex: none; }

/* 게시글 카드형 목록 (모바일은 표 대신 카드) */
.m-post-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; text-decoration: none; color: var(--text);
}
.m-post-card .t { font-weight: 700; font-size: 14.5px; display: flex; gap: 6px; align-items: center; }
.m-post-card .meta { color: var(--text-3); font-size: 12px; margin-top: 5px; display: flex; gap: 10px; }

.m-detail-body { white-space: pre-wrap; font-size: 14px; color: var(--text-2); }
