/* Blog page CSS — adapted from docs/forum-theme/samples/blog.html.
   Shared chrome (.wrap/.paper/.bar/.catbar/.page-crumb/.box/.gap/colour vars) is
   defined in forum.css and reused here; this file only adds the blog-specific
   two-column layout, entry cards, comments, the comment form and sidebar lists. */

/* two-column layout: main + 240px sidebar */
.layout{display:grid; grid-template-columns:1fr 240px; gap:9px; margin-top:9px}
.maincol{display:flex; flex-direction:column; gap:9px; min-width:0}
.sidecol{display:flex; flex-direction:column; gap:9px; min-width:0}

/* owner banner — this is THEIR blog (avatar + 网志 title + bio + stats).
   Glossy navy header bar over the paper frame, matching the sample palette. */
.ownerbanner{margin-top:9px; overflow:hidden}
.ownerbanner .ob-inner{display:flex; gap:14px; align-items:center; padding:14px 16px;
  background:linear-gradient(to bottom,
      rgba(255,255,255,.5) 0%, rgba(255,255,255,.08) 48%,
      rgba(255,255,255,0) 49%, rgba(0,0,0,.04) 100%),
    linear-gradient(to bottom, var(--bar-top), var(--bar-bot));
  border-bottom:1px solid var(--bar-edge)}
.ownerbanner .ob-av{flex:none}
.ownerbanner .ob-av img{display:block; width:60px; height:60px; object-fit:cover;
  border:2px solid #fff; box-shadow:0 1px 2px rgba(0,0,0,.25)}
.ownerbanner .ob-id{min-width:0; color:#fff}
.ownerbanner .ob-title{margin:0; font-size:19px; letter-spacing:1px; color:#fff;
  text-shadow:0 1px 1px rgba(0,0,0,.35)}
.ownerbanner .ob-tagline{margin-top:4px; font-size:12px; color:#eaf2fd; line-height:1.7}
.ownerbanner .ob-stats{margin-top:5px; font-size:11px; color:#dce8f9}

/* blog HOME masthead — section identity (forum name + description + counts).
   Glossy navy banner matching the owner banner; "网志" mark on the left. */
.bloghero{margin-top:9px; overflow:hidden}
.bloghero .bh-inner{display:flex; gap:16px; align-items:center; padding:16px 18px;
  background:linear-gradient(to bottom,
      rgba(255,255,255,.5) 0%, rgba(255,255,255,.08) 48%,
      rgba(255,255,255,0) 49%, rgba(0,0,0,.04) 100%),
    linear-gradient(to bottom, var(--bar-top), var(--bar-bot));
  border-bottom:1px solid var(--bar-edge)}
.bloghero .bh-mark{flex:none; width:58px; height:58px; display:flex; align-items:center; justify-content:center;
  font-size:19px; font-weight:bold; color:#fff; letter-spacing:1px;
  border:2px solid rgba(255,255,255,.85); border-radius:8px;
  background:rgba(255,255,255,.12); text-shadow:0 1px 1px rgba(0,0,0,.35)}
.bloghero .bh-id{min-width:0; color:#fff}
.bloghero .bh-title{margin:0; font-size:20px; letter-spacing:1px; color:#fff; text-shadow:0 1px 1px rgba(0,0,0,.35)}
.bloghero .bh-tagline{margin-top:5px; font-size:12px; color:#eaf2fd; line-height:1.7}
.bloghero .bh-stats{margin-top:6px; font-size:11px; color:#dce8f9}

/* home feed — recent entries across bloggers, as blog cards */
.feed{margin-top:9px}
.bcard{padding:16px 18px; border-bottom:1px solid var(--rule)}
.bcard:last-child{border-bottom:0}
.bcard-t{margin:0; font-size:17px; line-height:1.4; font-weight:bold}
.bcard-t a{color:#16345e}
.bcard-t a:hover{color:var(--link)}
.bcard-meta{margin:5px 0 0; color:var(--muted); font-size:11px}
.bcard-meta .au{color:var(--link); font-weight:bold}
.bcard-meta .dot{margin:0 2px; color:#c4d0e0}
.bcard-ex{margin:9px 0 0; font-size:13px; line-height:1.85; color:#3a4854}
.bcard-more{margin-top:9px; font-size:12px}
.bcard-more a{color:var(--link); font-weight:bold}

/* entry cards (list / home) */
.entry{padding:14px 16px; border-bottom:1px solid var(--rule)}
.entry:last-child{border-bottom:0}
.entry .t{font-size:16px; font-weight:bold; color:#16345e}
.entry .t a{color:#16345e}
.entry .meta{color:var(--muted); font-size:11px; margin:4px 0 8px}
.entry .meta a{color:var(--link)}
.entry .body{font-size:13px; line-height:1.9}
.entry .body p{margin:0}
.entry .att{margin-top:10px; padding:8px 12px; background:#fbfcfe;
  border:1px dashed #c4d2e8; border-radius:4px; font-size:12px; color:var(--muted)}
.entry .more{margin-top:8px}

/* pagination */
.pager{padding:8px 12px; border-top:1px solid var(--rule); font-size:12px}
.pager a, .pager span{display:inline-block; min-width:18px; text-align:center;
  padding:2px 6px; margin:0 2px; border:1px solid var(--frame); border-radius:3px}
.pager a{background:linear-gradient(#fbfdff,#e9f1fc); color:var(--cat-text)}
.pager .cur{background:var(--cat-text); color:#fff; border-color:var(--cat-text); font-weight:bold}
.pager .dim{color:#9aa6b8; background:#f4f6fa}

/* article (entry detail) — reads like a real blog post, not a forum thread */
.article{padding:22px 26px 26px}
.article .art-title{margin:0; font-size:25px; line-height:1.3; font-weight:bold; color:#16345e; letter-spacing:.5px}
.article .art-byline{display:flex; gap:11px; align-items:center; margin:14px 0 0; padding-bottom:16px; border-bottom:1px solid var(--rule)}
.article .art-byline .av{width:42px; height:42px; flex:none; border-radius:50%; border:1px solid var(--frame); object-fit:cover}
.article .art-byline .who{display:flex; flex-direction:column; gap:2px; min-width:0}
.article .art-byline .name{font-weight:bold; font-size:13px; color:#16345e}
.article .art-byline .grp{margin-left:7px; color:var(--muted); font-size:11px; font-weight:normal}
.article .art-byline .when{color:var(--muted); font-size:11px}
.article .art-body{margin-top:18px; font-size:15px; line-height:1.95; color:#23303d}
.article .art-body p{margin:0 0 1.1em}
.article .art-body img{max-width:100%; height:auto}

/* keep wide content (code, images, tables) inside the column, never overflow */
.maincol .art-body, .maincol .bc-body{overflow-wrap:break-word; word-wrap:break-word}
.maincol .bc-body img{max-width:100%; height:auto}
.maincol .art-body table, .maincol .bc-body table{max-width:100%}
.maincol .art-body pre, .maincol .bc-body pre{max-width:100%; overflow-x:auto; margin:12px 0; padding:10px 12px;
  background:#f6f8fa; border:1px solid #d7dee8; border-radius:3px;
  font:12px/1.6 "Courier New",Consolas,Monaco,monospace; -webkit-overflow-scrolling:touch}
.maincol pre code, .maincol code.code-content{display:inline; white-space:pre; padding:0; background:none; border:0; font:inherit}
.maincol .art-body code, .maincol .bc-body code{font-family:"Courier New",Consolas,Monaco,monospace; font-size:12px;
  background:#f0f3f7; padding:1px 4px; border-radius:2px}

/* article attachments — a titled section, glossy 附件 header, 16px icons */
.maincol .attachlist{margin-top:18px; border:1px solid var(--cat-edge); border-radius:3px; overflow:hidden; font-size:12px}
.maincol .attachlist .attachhd{padding:5px 10px; font-weight:bold; color:var(--cat-text);
  background:linear-gradient(to bottom, var(--cat-top) 0%, #D2DDEB 50%, #E1E9F4 75%, var(--cat-bot) 100%);
  border-bottom:1px solid var(--cat-edge); box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.maincol .attachlist .attachhd:before{content:"\1F4CE"; margin-right:5px}
.maincol .attachlist .attachitem{padding:7px 12px; background:#fff}
.maincol .attachlist .attachitem + .attachitem{border-top:1px solid var(--rule)}
.maincol .attachlist .attachrow{line-height:1.7; color:var(--muted)}
.maincol .attachlist .attachrow a{font-weight:bold; color:var(--link)}
.maincol .attachlist .attachrow img.attachment-icon{width:20px; height:20px; vertical-align:-5px; margin-right:6px}
.maincol .attachlist .attachimg{display:block; max-width:100%; max-height:480px; width:auto; height:auto;
  border:1px solid var(--frame); border-radius:2px; padding:2px; background:#fff; cursor:pointer}

/* comments — blog style: a clean stack, no forum floor chrome */
.comments{padding:16px 22px 8px}
.comments-h{margin:0 0 4px; font-size:14px; font-weight:bold; color:#16345e;
  padding-bottom:9px; border-bottom:2px solid var(--cat-edge)}
.bcomment{padding:13px 0; border-bottom:1px solid var(--rule)}
.bcomment:last-child{border-bottom:0}
.bcomment .bc-head{display:flex; align-items:baseline; gap:10px; margin-bottom:5px}
.bcomment .bc-head .name{font-weight:bold; font-size:12px; color:#16345e}
.bcomment .bc-head .when{color:var(--muted); font-size:11px}
.bcomment .bc-body{font-size:13px; line-height:1.8; color:#2a3742}
.comments .noc{padding:16px 2px; color:var(--muted); font-size:12px}

/* 发表评论 box */
.postcomment{padding:16px 22px 20px}
.postcomment .comments-h{margin-bottom:11px}

/* comment form */
.commentform{padding:0}
.commentform textarea{width:100%; box-sizing:border-box; min-height:120px;
  border:1px solid #b9c6dd; border-radius:3px; padding:7px;
  font-family:inherit; font-size:13px; line-height:1.6}
.commentform .actions{margin-top:8px}
.commentform .ajax-error{color:#c00; font-size:12px; margin-bottom:6px}

/* glossy submit button (from the sample) */
.sbtn{display:inline-flex; align-items:center; height:28px; padding:0 14px;
  font-size:12px; font-weight:bold; color:var(--cat-text);
  border:1px solid #6699cc; border-radius:4px;
  background:linear-gradient(#fbfdff,#dceafd); box-shadow:inset 0 1px 0 #fff; cursor:pointer}
.sbtn:hover{background:linear-gradient(#fff,#e8f1fe); text-decoration:none}

/* sidebar lists (最近 / 归档) */
.sidecol .lst{padding:6px 0}
.sidecol .lst a{display:flex; align-items:center; gap:8px; padding:5px 12px; color:#33506f}
.sidecol .lst a:hover{background:#eef3fb; text-decoration:none}
.sidecol .lst a .n{margin-left:auto; color:var(--muted); flex:none}

@media (max-width:760px){
  .layout{grid-template-columns:1fr}
}
