@charset "utf-8";
/* 인터랙티브 전자책 — 사장님을 위한 AI 실전 안내서 */

/* ══════════ 서재(가판대) /ebook/ ══════════ */
.lib { max-width: 1080px; margin: 0 auto; padding: calc(68px + 60px) 24px 90px; }
.lib-hero { text-align: center; margin-bottom: 56px; }
.lib-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: #9fb0ff; margin-bottom: 16px; }
.lib-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: -.03em; line-height: 1.18; margin-bottom: 18px; }
.lib-hero h1 span { background: linear-gradient(120deg,#7c9bff,#c39bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lib-lead { font-size: 16.5px; color: var(--sub); line-height: 1.85; max-width: 640px; margin: 0 auto 24px; }
.lib-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 13.5px; color: var(--sub); }
.lib-meta b { color: #b9caff; font-weight: 800; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.bookcard { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--panel-line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
a.bookcard:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.bookcard-cover { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; overflow: hidden; }
.bookcard-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bookcard-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55)); }
.bookcard-no { position: absolute; top: 16px; left: 18px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.bookcard-emoji { position: absolute; top: 14px; right: 18px; z-index: 2; font-size: 28px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.bookcard-covertitle { position: relative; z-index: 2; font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1.25; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.bookcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bookcard-body h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 6px; }
.bookcard-sub { font-size: 13.5px; font-weight: 600; color: #b9c0d4; margin-bottom: 12px; }
.bookcard-desc { font-size: 13.5px; color: var(--sub); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.bookcard-meta { display: flex; gap: 6px; font-size: 12.5px; color: #8b93aa; font-weight: 600; margin-bottom: 16px; }
.bookcard-cta { align-self: flex-start; font-size: 14px; font-weight: 800; color: var(--accent); }
a.bookcard:hover .bookcard-cta { text-decoration: underline; text-underline-offset: 3px; }

.bookcard-soon { border-style: dashed; opacity: .82; }
.bookcard-cover-soon { background: rgba(255,255,255,.03); align-items: center; justify-content: center; }
.bookcard-cover-soon::after { display: none; }
.bookcard-cover-soon .bookcard-emoji { position: static; font-size: 40px; opacity: .7; }
.bookcard-cover-soon .bookcard-covertitle { text-align: center; color: var(--sub); font-size: 16px; }
.bookcard-soon .bookcard-cta { color: #9fb0ff; }

.lib-cta { margin-top: 64px; padding: 44px 34px; text-align: center; background: linear-gradient(150deg, rgba(90,110,255,.12), rgba(160,107,255,.05)); border: 1px solid rgba(130,150,255,.24); border-radius: 22px; }
.lib-cta h3 { font-size: clamp(20px,3vw,26px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px; }
.lib-cta p { font-size: 15px; color: var(--sub); line-height: 1.7; margin-bottom: 24px; }
.lib-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 620px) { .lib { padding-top: calc(68px + 36px); } .lib-grid { grid-template-columns: 1fr; } }

/* ══════════ 전자책 뷰어 ══════════ */
.eb { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; --fs: 17px; --nav-h: 68px; }

/* ── 좌측 사이드바 ── (사이트 상단 고정 nav 아래로 내려서 잘림 방지) */
.eb-side { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--panel-line); padding: 30px 24px; display: flex; flex-direction: column; }
.eb-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #9fb0ff; margin-bottom: 12px; }
.eb-title { font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 8px; }
.eb-sub { font-size: 13px; color: var(--sub); line-height: 1.6; margin-bottom: 18px; }
.eb-progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.eb-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f7cff, #a06bff); border-radius: 999px; transition: width .3s; }
.eb-progress-label { font-size: 12px; color: var(--sub); margin-bottom: 24px; }
.eb-progress-label b { color: #b9caff; }

.eb-toc { flex: 1; }
.eb-part { font-size: 12.5px; font-weight: 800; color: #8fa3ff; margin: 20px 0 8px; letter-spacing: -.01em; }
.eb-part:first-child { margin-top: 0; }
.eb-tocitem { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; color: var(--sub); text-decoration: none; line-height: 1.45; transition: all .15s; }
.eb-tocitem:hover { background: rgba(255,255,255,.04); color: var(--text); }
.eb-tocitem.active { background: rgba(90,110,255,.14); color: #fff; font-weight: 600; }
.eb-check { flex-shrink: 0; width: 15px; height: 15px; border: 1.5px solid var(--panel-line); border-radius: 5px; margin-top: 2px; transition: all .2s; }
.eb-check.done { background: linear-gradient(120deg,#4f7cff,#a06bff); border-color: transparent; position: relative; }
.eb-check.done::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; font-weight: 900; }

.eb-side-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--panel-line); display: flex; flex-direction: column; gap: 8px; }
.eb-side-cta a { font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 10px; text-align: center; text-decoration: none; transition: all .2s; }
.eb-side-cta a:first-child { background: rgba(90,110,255,.12); color: #b9caff; border: 1px solid rgba(130,150,255,.28); }
.eb-side-cta a:last-child { background: linear-gradient(120deg,#4f7cff,#a06bff); color: #fff; }
.eb-side-cta a:hover { filter: brightness(1.1); }

/* ── 우측 본문 ── */
.eb-main { min-width: 0; }
.eb-topbar { position: sticky; top: var(--nav-h); z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px 30px; background: rgba(7,7,14,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--panel-line); }
.eb-menu-btn { display: none; background: none; border: 1px solid var(--panel-line); color: var(--text); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.eb-tools { display: flex; gap: 6px; margin-left: auto; }
.eb-font-btn { background: rgba(255,255,255,.04); border: 1px solid var(--panel-line); color: var(--sub); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.eb-font-btn:hover { color: var(--text); border-color: #8fa3ff; }

.eb-content { max-width: 760px; margin: 0 auto; padding: 44px 30px 80px; }

.eb-hero { margin-bottom: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--panel-line); }
.eb-hero-kicker { font-size: 12.5px; font-weight: 800; color: #9fb0ff; letter-spacing: .04em; margin-bottom: 16px; }
.eb-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 14px; }
.eb-hero-sub { font-size: 18px; color: #b9c0d4; font-weight: 600; margin-bottom: 22px; }
.eb-hero-lead { font-size: 16px; color: var(--sub); line-height: 1.85; }
.eb-hero-lead strong { color: #fff; }

.eb-partsec { margin-bottom: 20px; }
.eb-partlabel { font-size: 15px; font-weight: 800; color: #8fa3ff; margin: 48px 0 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--panel-line); }

.eb-chapter { padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.05); scroll-margin-top: calc(var(--nav-h) + 60px); }
.eb-chnum { font-size: 12px; font-weight: 800; color: #6d7284; letter-spacing: .05em; margin-bottom: 8px; }
.eb-chtitle { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 22px; }
.eb-chbody { font-size: var(--fs); line-height: 1.95; color: #d0d5e4; }
.eb-chbody p { margin-bottom: 20px; }
.eb-chbody strong { color: #fff; font-weight: 700; }
.eb-chbody a { color: #9fb0ff; text-decoration: underline; text-underline-offset: 3px; }
/* 핵심 문장 하이라이트 (형광펜) */
.eb-chbody p.hl { font-size: calc(var(--fs) + 3px); font-weight: 700; color: #fff; background: linear-gradient(120deg, rgba(90,110,255,.18), rgba(160,107,255,.12)); border-left: 3px solid #7c9bff; padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 26px 0; line-height: 1.6; }
.eb-chbody .hl-inline { background: linear-gradient(transparent 55%, rgba(160,107,255,.35) 55%); font-weight: 700; color: #fff; padding: 0 2px; }

.eb-keys { margin: 24px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eb-keys-label { font-size: 12px; color: #8b93aa; font-weight: 700; }
.eb-keys em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #b9caff; background: rgba(110,130,255,.12); border: 1px solid rgba(120,140,255,.25); padding: 4px 11px; border-radius: 999px; }

/* 비교표 */
.eb-chbody .tbl-wrap { overflow-x: auto; margin: 26px 0; }
.eb-chbody table { width: 100%; border-collapse: collapse; font-size: calc(var(--fs) - 1.5px); min-width: 440px; }
.eb-chbody thead th { text-align: left; font-weight: 800; color: #b9caff; background: rgba(90,110,255,.1); padding: 12px 14px; border-bottom: 1px solid rgba(130,150,255,.25); }
.eb-chbody tbody td { padding: 11px 14px; border-bottom: 1px solid var(--panel-line); color: #cdd2e2; line-height: 1.6; }
.eb-chbody tbody tr:last-child td { border-bottom: 0; }
.eb-chbody tbody td:first-child { font-weight: 700; color: #fff; }
.eb-chbody .tbl-cap { font-size: 12px; color: #8b93aa; margin-top: 8px; }
/* 💡핵심 / ⚠️주의 / 🙋알고계셨나요 박스 */
.eb-chbody .box { margin: 26px 0; padding: 18px 22px; border-radius: 0 14px 14px 0; line-height: 1.75; }
.eb-chbody .box-key { background: linear-gradient(120deg,rgba(90,110,255,.14),rgba(160,107,255,.07)); border-left: 3px solid #7c9bff; }
.eb-chbody .box-warn { background: rgba(255,180,90,.08); border-left: 3px solid #ffb45a; }
.eb-chbody .box-did { background: rgba(255,255,255,.03); border-left: 3px solid #6d7284; }
.eb-chbody .box b { color: #fff; }
.eb-chbody .box .eb-ref { color: #8b93aa; font-weight: 600; font-size: calc(var(--fs) - 3px); }
/* 본문 리스트 */
.eb-chbody ul.eb-list { list-style: none; padding: 0; margin: 20px 0; }
.eb-chbody ul.eb-list li { position: relative; padding-left: 22px; margin-bottom: 11px; line-height: 1.8; color: #cdd2e2; }
.eb-chbody ul.eb-list li::before { content: '▸'; position: absolute; left: 0; color: #8fa3ff; }
/* 체크리스트 */
.eb-chbody .checklist { margin: 26px 0; padding: 20px 24px; background: rgba(255,255,255,.025); border: 1px solid var(--panel-line); border-radius: 14px; }
.eb-chbody .checklist-title { font-weight: 800; color: var(--text); margin-bottom: 12px; font-size: calc(var(--fs) - 1px); }
.eb-chbody .checklist ul { list-style: none; padding: 0; margin: 0; }
.eb-chbody .checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: calc(var(--fs) - 1px); color: #c6cbdd; }
.eb-chbody .checklist li::before { content: '☐'; position: absolute; left: 0; color: #8fa3ff; font-size: 16px; }
/* 인용 질문(독자에게 묻기) */
.eb-chbody .eb-ask { font-style: italic; color: #b9c0d4; border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); padding: 16px 0; margin: 26px 0; }

/* ── GPT-PARK식 확장 컴포넌트 (2권 공용) ── */
/* 집필 노트 (Thought Process) */
.eb-note { margin: 0 0 30px; padding: 16px 20px; background: rgba(255,255,255,.022); border: 1px dashed var(--panel-line); border-radius: 12px; }
.eb-note-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #8fa3ff; margin-bottom: 8px; }
.eb-note p { font-size: calc(var(--fs) - 2px); color: #a9b0c4; line-height: 1.75; margin: 0; }
/* 수치 카드 (임팩트 데이터) */
.eb-chbody .eb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin: 28px 0; }
.eb-chbody .eb-stat { padding: 20px; background: linear-gradient(150deg,rgba(90,110,255,.1),rgba(160,107,255,.04)); border: 1px solid rgba(130,150,255,.2); border-radius: 16px; text-align: center; }
.eb-chbody .eb-stat b { display: block; font-size: clamp(28px,5vw,40px); font-weight: 900; letter-spacing: -.03em; color: #fff; line-height: 1.1; background: linear-gradient(120deg,#7c9bff,#c39bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eb-chbody .eb-stat span { display: block; font-size: 12.5px; color: var(--sub); margin-top: 8px; line-height: 1.5; font-weight: 600; }
/* 실전 팁 박스 (💡 이중구조) */
.eb-chbody .eb-tip { margin: 30px 0; padding: 22px 24px; background: rgba(255,255,255,.025); border: 1px solid rgba(130,150,255,.18); border-radius: 16px; }
.eb-chbody .eb-tip-head { font-size: calc(var(--fs) + 1px); font-weight: 800; color: #c9d4ff; margin-bottom: 6px; }
.eb-chbody .eb-tip-desc { font-size: calc(var(--fs) - 2px); color: var(--sub); margin-bottom: 16px; line-height: 1.7; }
.eb-chbody .eb-tip-item { margin: 14px 0; padding-left: 14px; border-left: 2px solid rgba(130,150,255,.35); }
.eb-chbody .eb-tip-item strong { display: block; color: #fff; margin-bottom: 4px; font-size: calc(var(--fs) - .5px); }
.eb-chbody .eb-tip-item p { font-size: calc(var(--fs) - 2px); color: #c2c8db; line-height: 1.7; margin: 4px 0; }
/* 용어집 카드 */
.eb-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; margin: 8px 0; }
.eb-term { padding: 20px; background: rgba(255,255,255,.025); border: 1px solid var(--panel-line); border-radius: 14px; }
.eb-term-abbr { font-size: 17px; font-weight: 900; color: #9fb0ff; letter-spacing: -.01em; }
.eb-term-full { font-size: 12px; color: #8b93aa; font-weight: 600; margin: 2px 0 10px; }
.eb-term p { font-size: 13.5px; color: #c2c8db; line-height: 1.7; margin: 0; }

/* 마무리 섹션 */
.eb-wrap { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--panel-line); }
.eb-wrap h4 { font-size: calc(var(--fs) + 2px); font-weight: 800; color: #9fb0ff; margin: 24px 0 12px; }
.eb-wrap h4:first-child { margin-top: 0; }
.eb-wrap ul { list-style: none; padding: 0; margin: 0 0 8px; }
.eb-wrap ul li { position: relative; padding-left: 20px; margin-bottom: 9px; line-height: 1.7; }
.eb-wrap ul li::before { content: '—'; position: absolute; left: 0; color: #8fa3ff; }
.eb-wrap .eb-oneline { font-size: calc(var(--fs) + 2px); font-weight: 700; color: #fff; background: linear-gradient(120deg,rgba(90,110,255,.16),rgba(160,107,255,.1)); padding: 14px 18px; border-radius: 12px; margin: 12px 0; line-height: 1.6; }

/* 워크북(클릭 체크) */
.eb-workbook { margin: 30px 0 8px; padding: 22px 24px; background: linear-gradient(150deg,rgba(90,110,255,.09),rgba(160,107,255,.04)); border: 1px solid rgba(130,150,255,.22); border-radius: 16px; }
.eb-wb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.eb-wb-head strong { font-size: 15px; }
.eb-wb-count { font-size: 12.5px; color: #9fb0ff; font-weight: 800; }
.eb-wb-desc { font-size: 12.5px; color: var(--sub); margin-bottom: 16px; line-height: 1.6; }
.eb-wb-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer; transition: all .15s; border: 1px solid transparent; }
.eb-wb-item:hover { background: rgba(255,255,255,.03); }
.eb-wb-item.checked { background: rgba(90,110,255,.08); }
.eb-wb-box { flex-shrink: 0; width: 20px; height: 20px; border: 1.5px solid var(--panel-line); border-radius: 6px; margin-top: 1px; transition: all .2s; display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; }
.eb-wb-item.checked .eb-wb-box { background: linear-gradient(120deg,#4f7cff,#a06bff); border-color: transparent; color: #fff; }
.eb-wb-text { font-size: 13.5px; line-height: 1.55; }
.eb-wb-text .eb-wb-tag { display: block; font-size: 11px; font-weight: 800; color: #9fb0ff; margin-bottom: 2px; }
.eb-wb-item.checked .eb-wb-text { color: var(--sub); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.2); }

.eb-done { margin-top: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--panel-line); color: var(--sub); font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.eb-done:hover { border-color: #8fa3ff; color: var(--text); }
.eb-done.done { background: linear-gradient(120deg,#4f7cff,#a06bff); border-color: transparent; color: #fff; }

.eb-endcta { margin-top: 60px; padding: 40px 34px; text-align: center; background: linear-gradient(150deg, rgba(90,110,255,.14), rgba(160,107,255,.06)); border: 1px solid rgba(130,150,255,.28); border-radius: 20px; }
.eb-endcta h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px; }
.eb-endcta p { font-size: 15px; color: var(--sub); line-height: 1.7; margin-bottom: 24px; }
.eb-endbtns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 반응형 ── */
@media (max-width: 900px) {
    .eb { grid-template-columns: 1fr; }
    .eb-side { position: fixed; top: var(--nav-h); left: 0; bottom: 0; height: auto; width: 300px; z-index: 60; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 60px rgba(0,0,0,.6); }
    .eb.side-open .eb-side { transform: none; }
    .eb-menu-btn { display: inline-block; }
    .eb-side-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
    .eb.side-open .eb-side-backdrop { opacity: 1; pointer-events: auto; }
}
