/*  article-blue - 老麥文章樣式(prosilver 子樣式)
    只改文章頁(body.section-viewtopic),其他頁面維持 prosilver 原樣。
    -------------------------------------------------------------- */

@import url("../../prosilver/theme/stylesheet.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@600;900&display=swap");

:root{
  --m-bg:#e9f1f8; --m-paper:#fbfaf6; --m-ink:#1d2b3a; --m-muted:#53657a; --m-accent:#2f6fa8; --m-line:#c5d5e5;
  --m-note:#fff7d6; --m-note-ink:#4a3d0a; --m-frame:#fdfcf8; --m-shadow:rgba(29,43,58,.18);
  --m-serif:"Noto Serif TC","Songti TC","PMingLiU",serif;
  --m-sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
}
@media (prefers-color-scheme:dark){
  :root{
    --m-bg:#101a26; --m-paper:#172433; --m-ink:#e6eef6; --m-muted:#9db0c4; --m-accent:#7db7ea; --m-line:#2c3f54;
    --m-note:#3a3414; --m-note-ink:#f3e7a8; --m-shadow:rgba(0,0,0,.5);
  }
}

/* ---------- 頁面外框:去掉 prosilver 的藍色頁首、白色大框 ---------- */
html body.section-viewtopic{background:var(--m-bg);color:var(--m-ink);font-family:var(--m-sans);padding:0 0 env(safe-area-inset-bottom,0)}
body.section-viewtopic #wrap{max-width:760px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 20px;min-width:0}
body.section-viewtopic a{color:var(--m-accent)}
body.section-viewtopic .headerbar{background:transparent;color:var(--m-ink);border-radius:0;margin:0;padding:18px 0 8px}
body.section-viewtopic .headerbar .site-description h1,
body.section-viewtopic .headerbar .site-description a{color:var(--m-ink);font-family:var(--m-serif);font-size:20px;font-weight:600;margin:0}
body.section-viewtopic .headerbar .site-description p{display:none}
body.section-viewtopic .headerbar .search-box{display:none}
body.section-viewtopic .navbar{background:transparent;border-radius:0;padding:0;border-bottom:1px solid var(--m-line)}
body.section-viewtopic .navbar *{color:var(--m-muted)}
body.section-viewtopic .navbar a:hover{color:var(--m-accent);text-decoration:none}
body.section-viewtopic #page-footer .navbar{border-bottom:0;border-top:1px solid var(--m-line);margin-top:48px}
body.section-viewtopic .copyright{color:var(--m-muted);font-size:12px;padding:12px 0 24px}

/* ---------- 文章標題 ---------- */
body.section-viewtopic h2.topic-title{font-family:var(--m-serif);font-size:clamp(28px,6.2vw,42px);font-weight:900;line-height:1.35;letter-spacing:.01em;color:var(--m-ink);margin:36px 0 4px;padding:0;border:0}
body.section-viewtopic h2.topic-title a{color:inherit}
body.section-viewtopic h2.topic-title a:hover{text-decoration:none}

/* ---------- 文章本體 ---------- */
body.section-viewtopic .post{background:transparent;border:0;border-radius:0;box-shadow:none;margin:0;padding:0}
body.section-viewtopic .post .inner{padding:0}
body.section-viewtopic .postbody{float:none;width:auto;max-width:none;padding:0;color:var(--m-ink)}
body.section-viewtopic .postbody h3{font-family:var(--m-serif);font-size:20px;border:0;margin:40px 0 4px;padding:0;text-transform:none}
body.section-viewtopic .postbody h3 a{color:var(--m-ink)}
body.section-viewtopic .art-meta{margin:6px 0 0;color:var(--m-muted);font-size:14px;line-height:1.6}
body.section-viewtopic .art-by{margin-right:.6em;font-weight:700}
body.section-viewtopic .postbody .content{font-family:var(--m-sans);font-size:17px;line-height:1.85;color:var(--m-ink);min-height:0;overflow:visible;padding:8px 0 0}
body.section-viewtopic .postbody .content a{color:var(--m-accent)}
body.section-viewtopic .postbody ul.post-buttons{opacity:.55;margin:0}
body.section-viewtopic .postbody ul.post-buttons:hover{opacity:1}
body.section-viewtopic .postbody .notice,
body.section-viewtopic .signature{color:var(--m-muted);border-color:var(--m-line)}
body.section-viewtopic .art-foot{background:transparent;border:0;margin-top:32px}

/* ---------- 自訂 BBCode 元件 ---------- */
.content .art-h2{font-family:var(--m-serif);font-size:24px;font-weight:600;line-height:1.35;margin:56px 0 0;padding-top:20px;border-top:2px solid var(--m-line)}
.content .art-lead{font-size:19px;color:var(--m-muted);margin:16px 0 0}
.content .art-film{margin:24px auto;max-width:320px;background:var(--m-frame);padding:12px 12px 0;border-radius:3px;box-shadow:0 6px 18px var(--m-shadow)}
.content .art-film img{display:block;width:100%;height:auto;margin:0;border:0}
.content .art-film figcaption{padding:12px 4px 14px;font-size:14px;line-height:1.6;color:#4b5a6a;min-height:44px}
.content .art-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0;align-items:start}
.content .art-pair .art-film{margin:0;max-width:none}
.content .art-pair .art-film:nth-child(odd){transform:rotate(-1deg)}
.content .art-pair .art-film:nth-child(even){transform:rotate(1deg)}
.content .art-diagram{margin:26px 0;background:#fff;border:1px solid var(--m-line);border-radius:4px;padding:10px}
.content .art-diagram img{display:block;width:100%;height:auto;margin:0;border:0}
.content .art-diagram figcaption{color:#3d4d5e;font-size:14px;line-height:1.6;padding:8px 6px 4px}
.content .art-note{background:var(--m-note);color:var(--m-note-ink);padding:18px 20px;border-radius:2px;margin:0}
.content .art-verdict{background:var(--m-paper);border-left:6px solid var(--m-accent);padding:16px 20px;margin:24px 0;font-weight:500}
.content .art-card{background:var(--m-paper);padding:14px 16px;border-radius:4px}
.content .art-pair > .art-note,.content .art-pair > .art-card{align-self:center}

/* [list=1] 做成圓形編號 */
.content ol{list-style:none;counter-reset:m;padding:0;margin:20px 0}
.content ol li{counter-increment:m;position:relative;padding:12px 0 12px 48px;border-bottom:1px solid var(--m-line);margin:0}
.content ol li::before{content:counter(m);position:absolute;left:0;top:12px;width:32px;height:32px;border-radius:50%;background:var(--m-accent);color:var(--m-bg);display:grid;place-items:center;font-weight:700;font-size:15px;line-height:1}

/* 區塊元件後面 phpBB 自動補的換行不要顯示 */
.content .art-h2 + br,.content .art-lead + br,.content figure + br,
.content .art-pair + br,.content .art-note + br,.content .art-verdict + br,.content .art-card + br,
.content .art-pair > br{display:none}

@media (max-width:480px){
  .content .art-pair{grid-template-columns:minmax(0,1fr)}
  body.section-viewtopic #wrap{padding:0 14px}
}
