@charset "utf-8";
/* 從鐵拳到理解：權威、創傷與關係的重塑之路 — 主題電子書展 */

:root{
  --paper:#f6f1e4;
  --paper-card:#fbf8f2;
  --ink:#1c1a17;
  --ink-soft:#5f5a54;
  --ink-mute:#6b665c;
  --ink-faint:#8a857c;
  --dark:#171310;
  --accent:#c97e5f;
  --history:#b5432f;
  --trauma:#6f5d78;
  --anxiety:#a5793a;
  --practice:#55705a;
  --stories:#35586b;
  --img:../../img/ntue_from-fear-to-care;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Noto Sans TC','PingFang TC',system-ui,sans-serif;
  line-height:1.7;
}
::selection{background:var(--history);color:var(--paper)}
a{color:inherit}
a:hover{color:var(--history)}
button{font:inherit;cursor:pointer}
img{display:block}
h1,h2,h3,h4{font-family:'Noto Serif TC',serif}

@keyframes riseIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* ---------- 標頭 / 導覽 ---------- */
.site-logo{position:absolute;top:clamp(20px,2vw,40px);left:clamp(24px,3vw,56px);z-index:41;display:flex;align-items:center}
.site-logo img{height:clamp(26px,1.9vw,44px);width:auto}

.m-header{position:absolute;top:0;left:0;right:0;z-index:40;display:none;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;padding:14px clamp(20px,5vw,48px)}
.m-header .m-logo{display:flex;align-items:center;flex-shrink:0}
.m-header .m-logo img{height:clamp(20px,4.5vw,28px);width:auto}
.m-burger{width:40px;height:40px;border:1px solid rgba(246,241,228,.32);border-radius:8px;background:rgba(23,19,16,.3);backdrop-filter:blur(6px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.m-burger span{width:18px;height:2px;background:var(--paper);display:block}

.m-menu{position:absolute;top:68px;left:0;right:0;z-index:39;display:none;flex-direction:column;background:rgba(23,19,16,.94);backdrop-filter:blur(14px);padding:8px 24px 16px}
.m-menu.is-open{display:flex}
@media (min-width:861px){.m-menu,.m-menu.is-open{display:none}}
.m-menu a{padding:12px 0;text-decoration:none;color:var(--paper);font-weight:600;border-bottom:1px solid rgba(246,241,228,.12)}
.m-menu a:hover{color:var(--accent)}

.pc-nav{position:absolute;top:0;bottom:0;right:0;z-index:41;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding:clamp(20px,2vw,40px) clamp(14px,1.2vw,26px);background:rgba(23,19,16,.45);backdrop-filter:blur(8px);font-size:clamp(13px,.9vw,18px);font-weight:600;letter-spacing:.18em;color:rgba(246,241,228,.86)}
.pc-nav .nav-item{position:relative;display:flex}
.pc-nav .nav-item a{text-decoration:none;color:inherit;writing-mode:vertical-rl;text-orientation:upright;border-left:2px solid transparent;padding-left:10px;transition:border-color .25s ease,color .25s ease}
.pc-nav .nav-item a:hover{border-left-color:var(--accent);color:var(--paper)}
.pc-nav .crane{position:absolute;left:-73px;top:-64px;width:150px;height:auto;pointer-events:none;animation:riseIn .35s ease both;display:none}
.pc-nav .nav-item:hover .crane{display:block}

/* ---------- 首屏 ---------- */
.hero-pc{position:relative;background-color:var(--dark);color:var(--paper);width:100%;aspect-ratio:2/1;min-height:440px;max-height:88vh;overflow:hidden}
.hero-pc .bg{position:absolute;inset:0;background-image:url(../img/ntue_from-fear-to-care/hero-pc.png);background-size:cover;background-position:center center}
.hero-pc .scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,19,16,0) 0%,rgba(23,19,16,.08) 30%,rgba(23,19,16,.45) 46%,rgba(23,19,16,.8) 60%,rgba(23,19,16,.93) 78%,rgba(23,19,16,.96) 100%)}
.hero-pc .wrap{position:absolute;inset:0;display:flex;align-items:center}
.hero-pc .copy{max-width:clamp(420px,32vw,700px);margin-left:auto;margin-right:clamp(150px,15vw,320px);padding:0 clamp(20px,2.5vw,48px)}
.hero-pc .kicker{display:inline-flex;margin-bottom:clamp(14px,1.2vw,24px);padding:clamp(6px,.5vw,11px) clamp(12px,.9vw,20px);border:1px solid rgba(246,241,228,.24);border-radius:999px;font-size:clamp(12px,.78vw,17px);font-weight:700;letter-spacing:.05em;color:rgba(246,241,228,.72)}
.hero-pc h1{margin:0;font-weight:900;font-size:clamp(36px,4.2vw,96px);line-height:1.02;letter-spacing:-.02em;white-space:nowrap}
.hero-pc h1 em{font-style:normal;color:var(--accent)}
.hero-pc .sub{margin-top:clamp(12px,1.1vw,22px);font-family:'Noto Serif TC',serif;font-size:clamp(18px,1.85vw,40px);font-weight:700;line-height:1.3}
.hero-pc p{max-width:100%;margin:clamp(24px,2.1vw,46px) 0 0;font-size:clamp(13px,.92vw,20px);color:rgba(246,241,228,.78);line-height:1.6}

.hero-m{position:relative;background:var(--dark);color:var(--paper);display:none}
.hero-m .shot{position:relative;width:100%;aspect-ratio:3/4;background-image:url(../img/ntue_from-fear-to-care/hero-mobile.png);background-size:cover;background-position:center top}
.hero-m .fade{position:absolute;left:0;right:0;bottom:0;height:62%;background:linear-gradient(0deg,#171310 8%,rgba(23,19,16,.88) 34%,rgba(23,19,16,.45) 62%,rgba(23,19,16,0) 100%)}
.hero-m .titlebox{position:absolute;left:0;right:0;bottom:0;padding:0 24px 12px}
.hero-m .kicker{font-size:11px;font-weight:700;letter-spacing:.2em;color:rgba(246,241,228,.62);margin-bottom:12px}
.hero-m h1{margin:0;font-weight:900;font-size:clamp(34px,13.2vw,62px);line-height:1.05;white-space:nowrap;letter-spacing:-.02em;text-shadow:0 2px 24px rgba(0,0,0,.5)}
.hero-m h1 em{font-style:normal;color:var(--accent)}
.hero-m .sub{margin-top:12px;padding-top:12px;border-top:1px solid rgba(246,241,228,.22);font-family:'Noto Serif TC',serif;font-size:clamp(19px,5.6vw,26px);font-weight:700;line-height:1.35}
.hero-m .lead{padding:18px 24px 44px}
.hero-m .lead p{margin:0;font-size:15px;line-height:1.75;color:rgba(246,241,228,.74)}

/* ---------- 區塊共用 ---------- */
.section{padding:96px 48px}
.section-head{margin-bottom:48px}
.section-head h2{margin:0 0 14px;font-size:clamp(32px,4.4vw,54px);line-height:1.2;text-wrap:pretty}
.section-head p{margin:0;color:var(--ink-mute);font-size:17px}
.section.dark{position:relative;overflow:hidden;background:var(--ink);color:var(--paper)}
.section.dark .section-head p{color:rgba(246,241,228,.66)}

/* ---------- 五個面向 ---------- */
.themes{display:flex;flex-direction:column}
.theme-row{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;padding:26px 8px;border:0;border-top:1px solid rgba(28,26,23,.14);background:transparent;text-align:left;width:100%;overflow:hidden}
.theme-row .bar{position:absolute;left:0;bottom:0;height:3px;width:0;transition:width .5s cubic-bezier(.4,0,.2,1)}
.theme-row:hover .bar{width:100%}
.theme-row strong{font-family:'Noto Serif TC',serif;font-size:24px;font-weight:700}
.theme-row span.desc{color:var(--ink-mute);font-size:15px}
.themes .rule{border-top:1px solid rgba(28,26,23,.14)}

/* ---------- 三條路徑 ---------- */
.routes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.route{padding:30px;border:1px solid rgba(246,241,228,.16);border-radius:18px;background:rgba(246,241,228,.03)}
.route .letter{display:grid;place-items:center;width:38px;height:38px;margin-bottom:34px;border:1px solid rgba(246,241,228,.35);border-radius:50%;font-family:Georgia,serif;font-style:italic}
.route h3{font-size:24px;margin:0 0 12px;font-weight:700}
.route p{color:rgba(246,241,228,.64);margin:0 0 22px}
.route button{border:0;background:none;color:var(--paper);padding:0;font-weight:700;text-decoration:underline;text-underline-offset:5px}

/* ---------- 篩選 ---------- */
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px}
.chip{width:132px;border-radius:999px;padding:10px 8px;border:1px solid;background:transparent;font-size:14px;font-weight:600;text-align:center}

.hero-pc .dates{margin-top:clamp(12px,1.1vw,22px)}
.hero-m .dates{margin-top:12px}

/* ---------- 書卡 ---------- */
.books{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}
.book{border:1px solid rgba(28,26,23,.13);border-radius:16px;background:var(--paper-card);overflow:hidden;cursor:pointer;display:flex;flex-direction:column;animation:riseIn .4s ease both;transition:transform .25s ease,box-shadow .25s ease}
.book:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(28,26,23,.12)}
.book .wave{height:118px;background-size:100% 100%;background-repeat:no-repeat}
.book .body{padding:4px 22px 0;display:flex;flex-direction:column}
.book .theme{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;font-weight:800;letter-spacing:.1em;line-height:1.35;min-height:2.7em}
.book h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0;font-size:20px;line-height:1.4;font-weight:700;min-height:2.8em}
.book .csub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;margin:-2px 0 6px;font-size:14px;line-height:1.45;color:var(--ink-mute);font-weight:500}
@media (max-width:860px){.book .csub{display:none}}
.book .meta{font-size:13px;line-height:1.5;min-height:1.5em;color:var(--ink-mute);margin-bottom:14px}
.book .tags{display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px;padding:0 22px 20px;min-height:calc(3 * 25px + 2 * 6px + 20px);margin-bottom:auto}
.tag{padding:5px 10px;border-radius:999px;background:rgba(28,26,23,.06);font-size:12px;color:#55514c}

/* ---------- 頁尾 / 回頂 ---------- */
.site-footer{padding:24px 48px;background:var(--ink);color:rgba(246,241,228,.4);font-size:12px;text-align:center}
.to-top{position:fixed;right:22px;bottom:22px;z-index:30;width:46px;height:46px;border:0;border-radius:50%;background:var(--ink);color:#fff;font-size:18px;display:none}
.to-top.is-on{display:block}

/* ---------- 彈窗共用 ---------- */
.overlay{position:fixed;inset:0;z-index:100;background:rgba(20,18,16,.62);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:20px}
.overlay.is-open{display:flex}
#platform-overlay{z-index:110}
.modal-close{position:absolute;right:14px;top:12px;z-index:2;width:38px;height:38px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:20px}

/* 書籍詳情 */
.book-modal{width:min(840px,100%);max-height:calc(100vh - 40px);overflow:hidden;border-radius:22px;background:var(--paper-card);position:relative;display:flex;flex-direction:column}
.book-modal .head{flex:0 0 auto;color:#fff;padding:22px 62px 22px 22px;display:flex;flex-direction:column;gap:7px}
.book-modal .head .theme{font-size:11px;font-weight:800;letter-spacing:.14em;opacity:.88}
.book-modal .head h3{margin:0;font-size:clamp(21px,5.4vw,30px);line-height:1.32;text-wrap:pretty}
.book-modal .head .meta{font-size:13px;opacity:.85}

.bm-pc{flex:1;min-height:0;display:grid;grid-template-columns:288px 1fr;align-items:stretch}
.bm-pc .side{background:rgba(28,26,23,.05);padding:26px 24px;display:flex;flex-direction:column;gap:16px;overflow:hidden}
.cover{position:relative;width:240px;height:320px;max-height:320px;flex:0 1 320px;min-height:160px;overflow:hidden;background:rgba(28,26,23,.06)}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cover .ph{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:var(--ink-faint);text-align:center;padding:10px}
.go-read{display:inline-flex;min-height:44px;box-sizing:border-box;align-items:center;justify-content:center;padding:11px 22px;border-radius:999px;color:#fff;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;flex-shrink:0}
.go-read:hover{filter:brightness(1.12);color:#fff}
.bm-pc .main{padding:28px 32px 32px;overflow:auto;max-height:100%;display:flex;flex-direction:column}
.bm-pc .block{padding:16px 0;border-top:1px solid rgba(28,26,23,.12)}
.bm-pc .block:first-child{padding:0 0 16px;border-top:0}
.bm-pc h4{margin:0 0 8px;font-size:13px;letter-spacing:.08em}
.bm-pc p{margin:0;line-height:1.85}
.bm-pc .taglist{padding:16px 0;border-top:1px solid rgba(28,26,23,.12);display:flex;flex-wrap:wrap;gap:6px}
.bm-pc .credfoot{margin-top:auto;padding-top:20px;display:flex;justify-content:flex-end}

.book-modal .head .subtitle{min-height:1.4em;font-size:16px;font-weight:500;line-height:1.4;color:rgba(255,255,255,.82)}
@media (max-width:860px){.book-modal .head .subtitle{display:none}}

/* 帳號複製 */
.cred{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px dashed rgba(28,26,23,.28);border-radius:12px;background:transparent;text-align:left}
.cred:hover{background:rgba(28,26,23,.04)}
.cred .lines{display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center}
.cred .label{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--ink-faint)}
.cred .value{font-family:ui-monospace,'JetBrains Mono',monospace;font-size:14px;font-weight:700;color:var(--ink);letter-spacing:.04em;user-select:all}
.cred .state{font-size:12px;font-weight:700;white-space:nowrap}

/* 書籍詳情：行動版 */
.bm-m{display:none;flex:1;min-height:0;overflow:auto;padding:20px 20px 44px;flex-direction:column;gap:18px;-webkit-overflow-scrolling:touch}
.bm-m .top{display:flex;gap:16px;align-items:stretch}
.bm-m .cover{width:126px;flex:0 0 126px;height:168px}
.bm-m .acts{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
.bm-m .go-read{display:flex;min-height:48px;font-size:15px}
.bm-m .cred{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px}
.bm-m .cred .label{font-size:10px;letter-spacing:.08em;line-height:1.5}
.bm-m .cred .row{display:flex;align-items:center;gap:8px}
.bm-m h4{margin:0 0 6px;font-size:12px;letter-spacing:.08em}
.bm-m p{margin:0;font-size:14px;line-height:1.85}
.bm-m .block{padding-top:16px;border-top:1px solid rgba(28,26,23,.12)}
.bm-m .taglist{padding-top:16px;border-top:1px solid rgba(28,26,23,.12);display:flex;flex-wrap:wrap;gap:6px}
.bm-fade{position:absolute;left:0;right:0;bottom:0;height:56px;pointer-events:none;display:none;background:linear-gradient(to top,#fbf8f2 22%,rgba(251,248,242,.85) 55%,rgba(251,248,242,0))}

/* 平台登入資訊 */
.platform-modal{position:relative;width:min(520px,100%);border-radius:20px;background:var(--paper-card);padding:34px clamp(22px,4vw,38px) 30px;box-shadow:0 24px 60px rgba(20,18,16,.34)}
.platform-modal .x{position:absolute;right:16px;top:14px;width:36px;height:36px;border:1px solid rgba(28,26,23,.16);border-radius:50%;background:#fff;font-size:18px;color:#55514c}
.platform-modal .x:hover{border-color:var(--history);color:var(--history)}
.platform-modal .title{font-size:17px;font-weight:800;letter-spacing:.12em;color:var(--history);margin-bottom:14px;text-align:center}
.platform-modal .note{margin:0 0 22px;color:var(--ink-soft);font-size:14px;line-height:1.85}
.platform-modal .credwrap{display:flex;margin-bottom:24px}
.platform-modal .cred{flex:1;justify-content:center;gap:34px;padding:14px 18px}
.platform-modal .cred .value{font-size:15px}
.platform-modal .cred .state{color:var(--history)}
.platform-modal .cred:hover{border-color:var(--history)}
.platform-modal .acts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.btn-line,.btn-solid{width:150px;height:48px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:999px;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap}
.btn-line{border:1px solid rgba(28,26,23,.22);background:transparent;color:#55514c}
.btn-line:hover{border-color:var(--ink);color:var(--ink)}
.btn-solid{border:1px solid var(--ink);background:var(--ink);color:var(--paper)}
.btn-solid:hover{background:var(--history);border-color:var(--history);color:var(--paper)}

/* ---------- 行動版切換 ---------- */
@media (max-width:860px){
  .site-logo,.hero-pc{display:none}
  .m-header,.hero-m{display:flex}
  .hero-m{flex-direction:column}
  .section{padding:64px 24px}
  .chips{display:grid;grid-template-columns:1fr 1fr;justify-items:stretch}
  .chip{width:100%;padding:12px 8px}
  .bm-pc{display:none}
  .bm-m{display:flex}
  .bm-fade{display:block}
}
