/* ============================================================
   自定义静态页共用样式（about.html / link.html）
   说明：这里只负责内容区排版。页面外壳、背景、半透明卡片、
   顶部导航和页脚由 primer.css + plugins/theme.js 提供，
   保持与首页、文章页同一套主题。
   ============================================================ */

/* 文章页标题栏（与 Gmeek post.html 保持一致，字号向首页看齐） */
#header .postTitle{margin:auto 0;font-size:42px !important;font-weight:bold;}
.title-right{display:flex;margin:auto 0 0 auto;}
.title-right .circle{padding:14px 16px;margin-right:8px;}
#postBody{padding-bottom:24px;}

/* 通用 */
#postBody h2{
  margin-top:34px;
  padding-bottom:6px;
  border-bottom:1px solid #d8dee4;
}

/* ---------- 关于页 ---------- */
#postBody .about-chart{
  display:block;
  width:100%;
  margin:6px 0 10px;
  padding:8px;
  background:#fff;
  border:1px solid #d0d7de;
  border-radius:10px;
  box-shadow:none;
}
#postBody .about-note{
  margin:0 0 18px;
  color:#8c959f;
  font-size:14px;
  text-align:left;
}
#postBody .site-log{
  margin:8px 0 0;
  font-size:17px;
  line-height:1.9;
  text-align:left;
}
#postBody .site-log b{color:#24292f;}
#postBody .cost{margin:10px 0 0;color:#9a6700;font-size:16px;text-align:left;}
#postBody .history{
  display:table;
  width:100%;
  max-width:100% !important;
  margin:12px 0 0;
  border-collapse:collapse;
  border-spacing:0;
  border-radius:0;
  box-shadow:none;
  font-size:16px;
}
#postBody .history th,
#postBody .history td{
  padding:8px 12px;
  text-align:left;
  border:1px solid #d0d7de;
}
#postBody .history th{
  background:#f6f8fa;
  font-weight:600;
  color:#24292f;
}
#postBody .history tr:nth-child(2n) td{background:#fbfcfd;}

/* ---------- 友链页 ---------- */
#postBody .friend-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
  gap:14px;
  margin-top:6px;
}
#postBody .friend-card{
  display:flex;
  box-sizing:border-box;
  gap:12px;
  align-items:flex-start;
  height:var(--friend-card-height, auto);
  padding:16px;
  color:inherit;
  text-decoration:none;
  background:#fff;
  border:1px solid #d0d7de;
  border-radius:10px;
  transition:border-color .2s,transform .2s,box-shadow .2s;
}
#postBody .friend-card:hover{
  color:inherit;
  text-decoration:none;
  border-color:#0969da;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(3,102,214,.12);
}
#postBody .friend-card img{
  display:block;
  flex:none;
  width:44px;
  height:44px;
  margin:0;
  object-fit:cover;
  background:#f6f8fa;
  border:1px solid #d0d7de;
  border-radius:8px;
  box-shadow:none;
  transform:none;
}
#postBody .friend-card .meta{min-width:0;}
#postBody .friend-card b{
  display:block;
  color:#24292f;
  font-size:17px;
  line-height:1.4;
}
#postBody .friend-card p{
  margin:4px 0 0;
  color:#57606a;
  font-size:15px;
  line-height:1.6;
  text-align:left;
}

/* ---------- 手机 ---------- */
@media (max-width:640px){
  body{padding:8px;}
  #header .postTitle{font-size:26px !important;}
  #postBody h2{font-size:1.3em;}
  #postBody .friend-grid{grid-template-columns:1fr;}
}
