/* 닌자티비 사이트 스타일 (관리 화면은 admin.css) */
:root {
    --bg: #1f1f1f;
    --panel: #252729;
    --panel-2: #1a1c1e;
    --panel-3: #232730;
    --line: #34383d;
    --text: #e5e7eb;
    --muted: #9aa0a6;
    --accent: #f7931e;
    --accent-2: #ffb547;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}
a { color: inherit; }
img { max-width: 100%; }

/* 사이트 가로 영역 1400px (좌우 여백 16px 을 더해 1432px) */
.nj-wrap { max-width: 1432px; margin: 0 auto; padding: 0 16px; }

/* 본문 + 채팅 사이드 (채팅이 있으면 1025px 이상에서 오른쪽 300px → 본문 1080px) */
.nj-layout { max-width: 1432px; margin: 0 auto; padding: 20px 16px 40px; }
.has-chat .nj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.nj-main { min-width: 0; }
.nj-main .nj-wrap { max-width: none; padding: 0; }

/* 상단 */
.nj-header { background: #141516; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nj-header-in { max-width: 1432px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 64px; }
.nj-logo img { display: block; width: 150px; height: auto; }
.nj-nav { flex: 1; min-width: 0; }
.nj-drawer-head, .nj-burger { display: none; }
.nj-menu, .nj-sub { list-style: none; margin: 0; padding: 0; }
.nj-menu { display: flex; gap: 4px; }
.nj-menu-item { position: relative; }
.nj-menu-top { display: block; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: bold; white-space: nowrap; }
.nj-menu-item:hover > .nj-menu-top, .nj-menu-item:focus-within > .nj-menu-top { background: var(--panel); }
.nj-menu-item.on > .nj-menu-top { color: var(--accent-2); }
.nj-sub {
    position: absolute; top: 100%; left: 0; min-width: 170px; padding: 6px; margin-top: 4px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nj-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nj-menu-item:hover > .nj-sub, .nj-menu-item:focus-within > .nj-sub { opacity: 1; visibility: visible; transform: none; }
.nj-sub a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; white-space: nowrap; font-size: 14px; }
.nj-sub a:hover { background: var(--panel-2); color: var(--accent-2); }
.nj-sub a.on { background: var(--accent); color: #111; font-weight: bold; }
.nj-dim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; }
.nj-drawer-open .nj-header { z-index: 50; }   /* 사이드 메뉴(헤더 안)가 어두운 배경과 하단 바 위로 오게 */
.nj-dim[hidden] { display: none; }

/* 채팅 */
/* 배너와 채팅 상자는 따로 띄운다 (사이 여백은 페이지 배경색) */
.nj-side { position: sticky; top: 84px; }
.nj-chat-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nj-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.nj-chat-banner { display: block; margin-bottom: 10px; }
.nj-chat-banner img { display: block; width: 100%; height: auto; border-radius: 10px; }
.nj-chat-close { display: none; background: none; border: 0; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.nj-mbar { display: none; }

/* 하단 */
.nj-footer { border-top: 1px solid var(--line); background: #141516; padding: 24px 0; color: var(--muted); font-size: 13px; text-align: center; }
.nj-footer p { margin: 4px 0; }
.nj-footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.nj-footer-nav a { text-decoration: none; color: var(--text); }

/* 공통 박스 / 제목 */
.nj-section { background: var(--panel); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.nj-page-title { font-size: 26px; line-height: 1.3; margin: 0 0 6px; }
.nj-page-desc { color: var(--muted); margin: 0 0 16px; }
.nj-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 19px; }
.nj-section-title a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: normal; }
.nj-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; border: 0; cursor: pointer;
    background: var(--accent); color: #111; font-weight: bold; text-decoration: none; font-size: 15px;
}
.nj-btn:hover { background: var(--accent-2); }
.nj-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.nj-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 랜딩 배너 */
.nj-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 0 0 10px; padding: 0; }
.nj-banners img { display: block; width: 100%; height: auto; border-radius: 6px; }
.nj-big-banner { display: block; width: 100%; height: auto; margin: 0 0 10px; border-radius: 6px; }

/* 랜딩 본문 (기존 main_content 스타일) */
.main_content_wrap { background: var(--panel); padding: 10px; border: 1px solid var(--panel); border-radius: 10px; }
.main_content_wrap > div { background: var(--panel-2); color: var(--text); padding: 10px 20px; font-size: 15px; border: 1px solid var(--panel-2); border-radius: 10px; margin-bottom: 10px; line-height: 23px; }
.main_content_wrap > div > div { background: var(--panel-3); padding: 5px 10px; border: 1px solid var(--panel-3); border-radius: 10px; }
.main_content_wrap > div > div > div { background: #363e51; padding: 5px 10px; border: 1px solid #363e51; border-radius: 10px; }
.main_content_wrap div { margin-bottom: 10px; }
.main_content_wrap a { color: var(--text); }
.main_content_wrap h1 { font-size: 26px; line-height: 1.3; }
.main_content_wrap h2 { font-size: 22px; line-height: 1.3; }
.main_content_wrap h3 { font-size: 18px; }
.main_content_wrap h4 { font-size: 16px; }

/* 별점 */
.nj-stars { color: #e5484d; letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.nj-stars .off { color: #4a4f55; }

/* 보증업체 카드 그리드 (4 x 4) */
.nj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nj-card { display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s, transform .15s; }
.nj-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.nj-card-thumb { display: block; padding: 10px 10px 0; }
.nj-card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; background: #111; }
.nj-card-body { padding: 12px 12px 10px; flex: 1; }
.nj-card-title { margin: 0 0 10px; font-size: 15px; line-height: 1.45; font-weight: bold; }
.nj-card-title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nj-card-title a:hover { color: var(--accent-2); }
.nj-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.nj-card-meta .writer { font-weight: bold; }
.nj-card-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 9px 12px; font-size: 12px; color: var(--muted); }
/* 보증업체 : 썸네일 328 x 200. 본문 1080px 에서 3열, 간격 15px 이면 카드 350px → 썸네일이 딱 328px */
.nj-pgrid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
.nj-pgrid .nj-card-thumb img { aspect-ratio: 328 / 200; }
.nj-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* 페이지 번호 */
.nj-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.nj-paging a, .nj-paging span { min-width: 36px; padding: 6px 10px; border-radius: 6px; text-align: center; text-decoration: none; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.nj-paging .on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: bold; }

/* 보증업체 상세 */
.nj-breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.nj-breadcrumb a { text-decoration: none; }
.nj-view-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.nj-view-head h1 { font-size: 24px; line-height: 1.35; margin: 0 0 8px; }
.nj-view-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; align-items: center; }
.nj-view-meta strong { color: var(--text); }
.nj-view-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.nj-view-info div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.nj-view-info dt { font-size: 12px; color: var(--muted); }
.nj-view-info dd { margin: 2px 0 0; font-weight: bold; font-size: 16px; }
.nj-code { color: var(--accent-2); }
.nj-landing-img { display: block; margin: 0 auto 16px; max-width: 100%; height: auto; border-radius: 8px; }
.nj-content { overflow-wrap: anywhere; }
.nj-content img { height: auto; }
.nj-content table { border-collapse: collapse; max-width: 100%; }
.nj-content td, .nj-content th { border: 1px solid var(--line); padding: 6px 8px; }
.nj-content a { color: var(--accent-2); }
.nj-view-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 8px; }
.nj-prevnext { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.nj-prevnext li { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.nj-prevnext span { color: var(--muted); flex: none; width: 48px; }
.nj-prevnext a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 중계채널 */
.nj-channel-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.nj-channel-tabs a { flex: 1; max-width: 220px; text-align: center; padding: 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; font-weight: bold; }
.nj-channel-tabs a.on { background: var(--accent); border-color: var(--accent); color: #111; }
.nj-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nj-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nj-player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 16px; }
.nj-player-empty strong { color: var(--text); font-size: 18px; }
.nj-player-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 0; }
.nj-live-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: bold; }
.nj-live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.25); }
.nj-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nj-guide div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.nj-guide h3 { margin: 0 0 6px; font-size: 16px; color: var(--accent-2); }
.nj-guide p { margin: 0; font-size: 14px; color: var(--muted); }
.nj-seo-text h2 { font-size: 19px; margin: 0 0 8px; }
.nj-seo-text p { margin: 0 0 10px; color: var(--muted); }

/* 회원 메뉴 */
.nj-userbox-wrap { margin-left: auto; }
.nj-userbox { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.nj-userbox a { text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.nj-userbox a:hover { background: var(--panel); }
.nj-userbox form { margin: 0; }
.nj-userbox button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 6px 8px; }
.nj-userbox-me { font-weight: bold; }
.nj-point { color: var(--accent-2); font-weight: bold; }
.nj-lv { display: inline-block; padding: 0 6px; border-radius: 4px; background: #34383d; color: #cfd3d8; font-size: 11px; font-weight: bold; line-height: 18px; vertical-align: 1px; }
.nj-lv.admin { background: #e5484d; color: #fff; }
.nj-nick { font-weight: bold; }
.nj-btn.small { padding: 6px 12px; font-size: 13px; }
.nj-btn.block { display: flex; width: 100%; }
.nj-btn.danger { color: #ff8a8d; }
.nj-link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
.nj-link-btn:hover { color: var(--accent-2); }
.nj-inline, .nj-view-actions form { display: inline; margin: 0; }

/* 공통 */
.nj-narrow { max-width: 760px; }
.nj-center { text-align: center; }
.nj-muted { color: var(--muted); font-size: 13px; }
.nj-tag { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--panel-3); color: var(--accent-2); font-size: 12px; font-weight: bold; }
.nj-cnt { color: #e5484d; font-size: 12px; font-weight: bold; }
.nj-msg { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.nj-msg.ok { background: #16351f; color: #8fe0a7; }
.nj-msg.err { background: #3a1a1c; color: #ff9da0; }
.nj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 폼 */
.nj-form-box { max-width: 420px; margin: 20px auto; }
.nj-field { display: block; margin: 0 0 14px; font-weight: bold; font-size: 14px; }
.nj-field input, .nj-field select, .nj-field textarea, .nj-inline-form input, .nj-search input, .nj-search select, .nj-comment-form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--panel-2); color: var(--text); font: inherit; font-weight: normal;
}
.nj-field input:focus, .nj-field select:focus, .nj-comment-form textarea:focus { outline: none; border-color: var(--accent); }
.nj-field input[type=file] { padding: 8px; }
.nj-check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.nj-check input { margin-top: 4px; }
.nj-form-foot { text-align: center; color: var(--muted); font-size: 14px; }
.nj-inline-form { display: flex; gap: 8px; }
.nj-inline-form input { margin: 0; }
.nj-inline-form .nj-btn { flex: none; }
.note-editor.note-frame { background: #fff; color: #111; border-radius: 8px; margin-top: 6px; }
.note-editor .note-editable { color: #111; }

/* 표 */
.nj-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nj-table th, .nj-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.nj-table th { color: var(--muted); font-weight: normal; font-size: 13px; background: var(--panel-2); }
.nj-table .num { text-align: center; white-space: nowrap; }
.nj-table .plus { color: #8fe0a7; }
.nj-table .minus { color: #ff9da0; }
.nj-table tr.top td:first-child { color: var(--accent-2); font-weight: bold; }
.nj-post-table .title a { text-decoration: none; }
.nj-post-table .title a:hover { color: var(--accent-2); }
.nj-post-table tr.notice { background: var(--panel-3); }
.nj-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 게시판 : 썸네일 목록형 */
.nj-tlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nj-tlist li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.nj-tlist li.notice { background: var(--panel-3); }
.nj-tlist li.nj-empty { justify-content: center; }
.nj-tlist-thumb { flex: none; display: block; width: 96px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.nj-tlist-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nj-tlist-body { min-width: 0; flex: 1; }
.nj-tlist-title { display: block; text-decoration: none; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nj-tlist-title:hover { color: var(--accent-2); }
.nj-tlist-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* 게시판 */
.nj-board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.nj-board-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nj-board-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.nj-board-card:hover { border-color: var(--accent); }
.nj-board-card strong { font-size: 18px; }
.nj-board-card .nj-tag { align-self: flex-start; }
.nj-card-thumb img.tall { aspect-ratio: 4 / 3; }
.nj-notice-line { margin: 0 0 8px; }
.nj-notice-line a { text-decoration: none; }
.nj-search { display: flex; justify-content: center; gap: 6px; margin: 20px 0 0; }
.nj-search select { width: auto; margin: 0; }
.nj-search input { width: 220px; margin: 0; }
.nj-files { list-style: none; padding: 12px; margin: 16px 0 0; background: var(--panel-2); border-radius: 8px; }
.nj-files li { padding: 4px 0; }
.nj-files a { color: var(--accent-2); }
.nj-comments { list-style: none; margin: 0 0 16px; padding: 0; }
.nj-comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nj-comments p { margin: 6px 0 0; }
.nj-comment-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nj-comment-head form { margin: 0; }
.nj-comment-form { display: flex; gap: 8px; align-items: stretch; }
.nj-comment-form textarea { margin: 0; resize: vertical; }
.nj-comment-form .nj-btn { flex: none; }
.nj-prevnext.nj-section { margin-top: 0; padding-top: 0; padding-bottom: 0; }
.nj-recent-list { list-style: none; margin: 0; padding: 0; }
.nj-recent-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nj-recent-list li:last-child { border-bottom: 0; }
.nj-recent-list a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nj-recent-list .nj-muted { flex: none; }

/* 내 정보 / 레벨 */
.nj-progress { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; margin: 4px 0 6px; }
.nj-progress div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* 출석부 */
.nj-att-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nj-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 14px; }
.nj-calendar b { color: var(--muted); font-weight: normal; font-size: 12px; }
.nj-calendar span { padding: 8px 0; border-radius: 6px; background: var(--panel-2); }
.nj-calendar span:empty { background: none; }
.nj-calendar span.on { background: var(--accent); color: #111; font-weight: bold; }
.nj-calendar span.today { outline: 2px solid var(--accent-2); }
.nj-done { color: #8fe0a7; font-weight: bold; }
.nj-section-title h2 { margin: 0; font-size: 19px; }
.nj-section-title span a { color: var(--muted); }

/* 가입 중복 확인 */
.nj-check-msg { display: block; margin-top: 4px; font-size: 13px; font-weight: normal; }
.nj-check-msg.ok { color: #8fe0a7; }
.nj-check-msg.err { color: #ff9da0; }
.nj-ended { padding: 10px 14px; border-radius: 8px; background: #3a1a1c; color: #ff9da0; margin: 0 0 16px; font-weight: bold; }

/* 환전 */
.nj-status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--panel-3); }
.nj-status.pending { color: var(--accent-2); }
.nj-status.done { color: #8fe0a7; }
.nj-status.rejected, .nj-status.canceled { color: var(--muted); }

@media (max-width: 1024px) {
    .nj-grid { grid-template-columns: repeat(3, 1fr); }

    /* 채팅 : 하단 버튼으로 여닫는 패널 */
    .has-chat .nj-layout { display: block; }
    .nj-side { position: fixed; left: 8px; right: 8px; bottom: 60px; top: auto; z-index: 25; display: none; background: var(--bg); border-radius: 10px; box-shadow: 0 -6px 24px rgba(0,0,0,.5); }
    .nj-chat-open .nj-side { display: block; }
    .nj-chat-banner { display: none; }   /* 고객센터 배너는 PC 에서만 */
    .nj-chat-close { display: block; }

    /* 하단 고정 바 */
    body { padding-bottom: 52px; }
    .nj-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; height: 52px; background: #141516; border-top: 2px solid var(--accent); }
    .nj-mbar a, .nj-mbar button { flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); font: inherit; font-size: 14px; font-weight: bold; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
    .nj-mbar > :last-child { border-right: 0; }
    .nj-mbar [aria-expanded="true"] { background: var(--accent); color: #111; }
}
@media (max-width: 900px) {
    /* 메뉴 : 햄버거 버튼 + 왼쪽에서 나오는 사이드 메뉴 */
    .nj-header-in { gap: 8px; min-height: 56px; }
    .nj-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 9px; background: none; border: 0; cursor: pointer; }
    .nj-burger span { display: block; height: 2px; background: var(--text); border-radius: 1px; }
    .nj-logo { margin: 0 auto; }
    .nj-logo img { width: 120px; }
    .nj-userbox-wrap { display: none; }
    .nj-header-in::after { content: ""; width: 40px; flex: none; }
    .nj-nav {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: 280px; max-width: 85vw; overflow-y: auto;
        background: #141516; border-right: 1px solid var(--line);
        transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s;
    }
    .nj-drawer-open .nj-nav { transform: none; visibility: visible; }
    .nj-drawer-open { overflow: hidden; }
    .nj-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
    .nj-drawer-head .nj-userbox { flex-wrap: wrap; white-space: normal; }
    .nj-drawer-close { background: none; border: 0; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
    .nj-menu { display: block; padding: 8px 0; }
    .nj-menu-top { padding: 12px 16px; border-radius: 0; font-size: 16px; }
    .nj-menu-item:hover > .nj-menu-top, .nj-menu-item:focus-within > .nj-menu-top { background: none; }
    .nj-sub { position: static; opacity: 1; visibility: visible; transform: none; transition: none; margin: 0 0 6px; padding: 0 0 0 12px; background: none; border: 0; box-shadow: none; min-width: 0; }
    .nj-sub::before { display: none; }
    .nj-sub a { padding: 9px 16px; font-size: 15px; color: var(--muted); }
    .nj-sub a.on { background: none; color: var(--accent-2); }
}
@media (max-width: 768px) {
    .nj-layout { padding-top: 14px; }
    .nj-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nj-card-foot .deposit { display: none; }
    .nj-guide { grid-template-columns: 1fr; }
    .nj-banners { grid-template-columns: 1fr; }
    .nj-board-dir, .nj-att-top { grid-template-columns: 1fr; }
    .nj-table .hide-m { display: none; }
    .nj-board-head { align-items: flex-start; flex-direction: column; }
    .nj-search select, .nj-search .nj-btn { flex: none; }
    .nj-search input { width: auto; flex: 1; min-width: 0; }
    .nj-page-title { font-size: 22px; }
    .nj-view-head h1 { font-size: 20px; }
    .main_content_wrap > div { padding: 10px 12px; }
    .main_content_wrap h1 { font-size: 22px; }
    .main_content_wrap h2 { font-size: 19px; }
    .nj-tlist-thumb { width: 80px; height: 56px; }
}
@media (max-width: 420px) {
    .nj-card-foot { flex-wrap: wrap; }
    .nj-card-title { font-size: 14px; }
}
