/* ======================================================================
   phpArticle div+css 现代化响应式样式表
   替代原 headinclude 内联 <style> 中的静态规则
   依赖 $style[...] 插值的颜色规则保留在 headinclude 内联 <style> 中
   ====================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  background-position: top left;
  background-attachment: scroll;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: #369; text-decoration: none; background-color: transparent; }
a:visited { color: #6c8bc7; }
a:hover { color: #f60; }
p, li, dl { text-align: left; }
ul, ol { margin: 0; padding-left: 1.5em; }
h1, h2, h3, h4 { margin: 0.5em 0; font-weight: 600; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* 三栏布局: 侧栏 / 主 / 边栏 */
.layout {
  display: grid;
  grid-template-areas: "sidebar main aside";
  grid-template-columns: 200px 1fr 200px;
  gap: 1rem;
  padding: 1rem 0;
}
.layout > .col-sidebar { grid-area: sidebar; }
.layout > .col-main    { grid-area: main; }
.layout > .col-aside   { grid-area: aside; }

@media (max-width: 1024px) {
  .layout {
    grid-template-areas: "sidebar main" "aside aside";
    grid-template-columns: 200px 1fr;
  }
}
@media (max-width: 768px) {
  .layout {
    grid-template-areas: "main" "sidebar" "aside";
    grid-template-columns: 1fr;
  }
}

/* ---------- Typography helpers ---------- */
.normalfont { font-size: 14px; }
.middlefont { font-size: 12px; }
.smallfont  { font-size: 11px; }
.bigfont    { font-size: 18px; font-weight: 600; }
.arrow      { font-size: 11px; color: #FF6600; }
.content    { font-size: 15px; line-height: 1.7; }
.subhead    { font-size: 15px; color: #FF6600; font-weight: 600; }
.datecolor  { color: #888; }

/* ---------- Header / Topnav ---------- */
.site-header { background: #fff; }
.site-header .logo img { display: block; max-width: 100%; }
.topnav {
  display: flex;
  flex-wrap: wrap;
  background: #588fc7;
  border-radius: 4px;
  overflow: hidden;
}
.topnav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 8px 6px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color .15s;
}
.topnav a:link, .topnav a:visited, .topnav a:active { color: #fff; }
.topnav a:hover { background: #99ccff; color: #fff; }
.header-bar {
  background: #588fc7;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  margin-top: 4px;
}
.header-bar a { color: #fff; }

/* ---------- Breadcrumb navbar ---------- */
.navbar-breadcrumb {
  background: #f5f5f5;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 13px;
}

/* ---------- Cards / Widgets ---------- */
.card, .widget {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.card-title, .widget-title {
  background: #FF7B1A;
  color: #fff;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 13px;
}
.card-title a, .widget-title a { color: #fff; }
.card-body, .widget-body { padding: 8px 10px; }

/* 表头样式 (#head / #tbh 兼容) */
#head { background-color: #588fc7; color: #fff; padding: 6px 10px; font-weight: 600; }
#head a { color: #fff; }
#tbh { color: #fff; }
#tbh a:link, #tbh a:visited, #tbh a:active, #tbh a:hover { color: #fff; text-decoration: none; }

/* ---------- Article grid (CSS Grid 替代 PHP $division) ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 8px;
}
.article-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
}
.article-card .art-title { font-weight: 600; margin-bottom: 4px; }
.article-card .art-title a { color: #369; }
.article-card .art-meta { font-size: 12px; color: #888; margin-bottom: 6px; }
.article-card .art-desc { font-size: 13px; color: #555; }
.article-card .art-img { float: left; margin: 0 8px 4px 0; max-width: 80px; }

/* ---------- Category grid (首页按大类两列) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.category-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.category-card-title {
  background: #588fc7;
  color: #fff;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 14px;
}
.category-card-title a { color: #fff; }
.category-articles {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
}
.category-articles li {
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 0 4px 10px;
  position: relative;
  border-bottom: 1px dashed #eee;
}
.category-articles li:last-child { border-bottom: 0; }
.category-articles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 4px;
  height: 4px;
  background: #FF7B1A;
  border-radius: 50%;
}
.category-more {
  text-align: right;
  padding: 0 10px 8px;
  font-size: 12px;
}
@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* ---------- Article view ---------- */
.article-view { padding: 10px; }
.article-view .art-title-main { text-align: center; font-size: 20px; font-weight: 600; margin: 0.5em 0; }
.article-view .art-meta-main { text-align: center; font-size: 12px; color: #888; margin-bottom: 1rem; }
.article-view .art-divider { border-top: 1px solid #eee; margin: 1rem 0; }
.article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 8px;
  margin: 1rem 0;
}
.article-actions a { font-weight: 600; padding: 4px 8px; }

/* 评分柱状图 */
.rate-bar { display: flex; align-items: flex-end; gap: 3px; }
.rate-bar .bar-col { width: 12px; text-align: center; }
.rate-bar .bar-col img { display: block; }
.rate-bar .bar-num { font-size: 11px; color: #888; }

/* ---------- News (首页公告) ---------- */
.news-box { margin-bottom: 1rem; }
.news-item { padding: 6px 0; border-bottom: 1px dashed #eee; }
.news-item:last-child { border-bottom: 0; }

/* ---------- Sidebar sort list (折叠树) ---------- */
.sort-tree { font-size: 13px; }
.sort-tree .tree-node { margin: 2px 0; }
.sort-tree .tree-root { font-weight: 600; }
.sort-tree .tree-root a { color: #fff; }
.sort-tree .tree-children { padding-left: 16px; }
.sort-tree img { vertical-align: middle; cursor: pointer; }

#root a { text-decoration: none; }
#cat a { text-decoration: none; color: #000; }
#cattext { text-decoration: none; font-size: 13px; }
#cattitle a:link, #cattitle a:visited, #cattitle a:active, #cattitle a:hover { color: #000; text-decoration: none; }
#nav { background-color: #303958; }
#nav a { text-decoration: none; color: #fff; }

/* ---------- Forms (前台) ---------- */
.form-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.form-card legend {
  background: #588fc7;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
}
.form-row { margin-bottom: 0.75rem; }
.form-row > label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.form-row .field input[type=text],
.form-row .field input[type=password],
.form-row .field textarea,
.form-row .field select {
  width: 100%;
  max-width: 400px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
}
.form-row .field textarea { max-width: 600px; vertical-align: top; }
.form-actions { text-align: center; padding: 0.5rem 0; }
.form-actions input[type=submit], .form-actions input[type=reset], .form-actions input[type=button] {
  padding: 6px 18px;
  border: 1px solid #588fc7;
  background: #588fc7;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 4px;
}
.form-actions input[type=reset] { background: #999; border-color: #999; }
.form-actions input:hover { opacity: .85; }
.section-title {
  background: #588fc7;
  color: #fff;
  padding: 6px 10px;
  font-weight: 600;
  border-radius: 4px;
  margin: 1rem 0 0.5rem;
}

/* ---------- Inputs (通用) ---------- */
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
}
input[type=text], input[type=password], textarea, select {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px 6px;
}
.button {
  padding: 4px 14px;
  border: 1px solid #588fc7;
  background: #588fc7;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}
.text { color: #000; background-color: #fff; }

/* ---------- Pagination ---------- */
.pagenav { text-align: center; padding: 0.5rem 0; }
.pagenav a, .pagenav span {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 2px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
}
.pagenav a:hover { background: #f0f0f0; }
.pagenav .current { background: #588fc7; color: #fff; border-color: #588fc7; }

/* ---------- Footer ---------- */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 12px 1rem;
  font-size: 12px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.site-footer a { color: #369; }

/* ---------- Messages / Alerts ---------- */
.alert {
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0.5rem 0;
  font-size: 13px;
}
.alert-info { background: #e8f4fd; border: 1px solid #b3d7f2; color: #1c5d9e; }
.alert-error { background: #fdecea; border: 1px solid #f5c2c0; color: #a9302a; }
.alert-success { background: #edf7ed; border: 1px solid #c5e0c5; color: #2e7d32; }

/* ---------- Comments ---------- */
.comment-list { margin: 1rem 0; }
.comment-item {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 0.5rem;
  background: #fafafa;
}
.comment-item .c-head { font-size: 12px; color: #888; margin-bottom: 4px; }
.comment-item .c-body { font-size: 13px; }

/* ---------- Two-column layout (分类/搜索页: 侧栏+主) ---------- */
.layout-2col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 1rem 0;
}
.layout-2col > .col-sidebar { grid-area: auto; }
.layout-2col > .col-main { grid-area: auto; }
@media (max-width: 768px) {
  .layout-2col { grid-template-columns: 1fr; }
}

/* ---------- Subsort grid (分类页子分类) ---------- */
.subsort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.subsort-item { background: #fafafa; border: 1px solid #eee; border-radius: 4px; padding: 6px 8px; }
.subsort-item .subsort-title { font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.subsort-children { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.subsort-children a { color: #369; }

/* ---------- Pagination bar (共N条 显示x-y) ---------- */
.pagenav-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 8px 10px;
  background: #f5f5f5;
  border-radius: 4px;
  margin: 0.5rem 0;
  align-items: center;
}

/* ---------- Inline labels (表单内单选/复选) ---------- */
.form-row .field label.inline { display: inline-block; font-weight: normal; margin-right: 12px; font-size: 13px; }
.form-row .field select[multiple] { max-width: 100%; }

/* ---------- Sidebar sort tree (折叠树, sortlist) ---------- */
.sort-tree { font-size: 13px; }
.sort-tree .tree-root {
  padding: 5px 8px;
  border-radius: 3px;
  margin-top: 6px;
  font-weight: 600;
}
.sort-tree .tree-root:first-child { margin-top: 0; }
.sort-tree .tree-children { padding-left: 16px; }
.sort-tree .tree-node { padding: 2px 0; }
.sort-tree .tree-node a { color: #333; }
.sort-tree .tree-node a:hover { color: #f60; }
.sort-tree img { vertical-align: middle; cursor: pointer; margin-right: 3px; }

/* ---------- Print ---------- */
@media print {
  .topnav, .header-bar, .site-footer, .article-actions, .col-sidebar, .col-aside, .pagenav { display: none !important; }
  .layout { display: block; }
  .container { max-width: 100%; }
  body { background: #fff; }
}

/* ======================================================================
   阶段 4: 文章/评论/留言样式
   ====================================================================== */

/* ---------- Widget list (侧栏/相关文章 列表) ---------- */
.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget-list li {
  padding: 3px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
}
.widget-list li:last-child { border-bottom: 0; }

/* ---------- Article view (正文) ---------- */
.art-editor { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px dashed #eee; color: #666; font-size: 12px; }

/* ---------- Rating (评分) ---------- */
.rate-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.rate-bar { display: flex; align-items: flex-end; gap: 3px; }
.rate-bar .bar-col { width: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.rate-bar .bar-col img { display: block; }
.rate-bar .bar-num { font-size: 11px; color: #888; margin-top: 2px; }

.rate-form { margin-top: 0.75rem; }
.rate-form .rate-label { margin-bottom: 4px; }
.rate-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.rate-opt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fafafa;
  cursor: pointer;
  font-size: 12px;
}
.rate-opt input { margin: 0; }

/* ---------- Page jump (文章分页跳转) ---------- */
.pagejump-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pagejump-form select { padding: 3px 6px; }

/* ---------- Data table (评论列表等真正的表格数据) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 6px 8px;
  border: 1px solid #e8e8e8;
  text-align: left;
}
.data-table thead th {
  background: #588fc7;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.data-table tbody tr:nth-child(even) { background: #f7f7f7; }
.data-table .center { text-align: center; }

/* ---------- Comment item (留言卡片) ---------- */
.comment-item { margin-bottom: 0.5rem; border: 1px solid #eee; border-radius: 4px; overflow: hidden; background: #fafafa; }
.comment-item .c-head { padding: 6px 10px; background: #f0f4fa; font-size: 13px; }
.comment-item .c-body { padding: 8px 10px; font-size: 13px; }
.comment-item .c-foot { padding: 4px 10px; text-align: right; border-top: 1px dashed #eee; }
.c-note { text-align: right; font-size: 12px; color: #888; padding: 2px 10px; }

/* ---------- Message thread tree (树型目录) ---------- */
.msg-thread .tree-node {
  padding: 3px 6px;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
}
.msg-thread .tree-node:last-child { border-bottom: 0; }
.msg-tree img { vertical-align: middle; }

/* ---------- Rules (评论须知) ---------- */
.rules {
  margin-top: 1rem;
  padding: 10px 12px;
  background: #fffbf0;
  border: 1px solid #f0e0c0;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
}
.rules ol { padding-left: 1.5em; margin: 0; }
.rules li { margin: 3px 0; line-height: 1.6; }
.rules a { color: #c00; }

/* ======================================================================
   阶段 5: 会员/认证/收藏/投稿/无权限/推荐样式
   ====================================================================== */

/* ---------- Form section subtitle (必填/选填 小标题) ---------- */
.section-subtitle {
  background: #f0f4fa;
  color: #1c5d9e;
  padding: 5px 10px;
  font-size: 12px;
  border-left: 3px solid #588fc7;
  margin: 0.5rem 0;
  border-radius: 0 3px 3px 0;
}
.field-hint { font-weight: normal; color: #888; font-size: 12px; }

/* ---------- Sidebar login widget (logincode/logoutcode) ---------- */
.login-widget .widget-body { padding: 8px 10px; }
.login-line { margin: 4px 0; font-size: 13px; }
.login-line label { display: inline-block; min-width: 2.5em; }
.login-line.center { text-align: center; }
.login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; }

/* ---------- Login page (整页登陆) ---------- */
.login-page { max-width: 480px; margin: 1rem auto; }
.login-page .login-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #f9fafc;
  padding: 10px;
  border-radius: 3px;
  margin-top: 0.5rem;
}
.login-page .login-links { font-size: 13px; line-height: 1.8; }
.login-links a { color: #369; }
.login-links a:hover { color: #f60; }

/* ---------- Control panel layout (usercp/member/favorite) ---------- */
.cp-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  padding: 1rem 0;
}
.cp-nav { min-width: 0; }
.cp-main { min-width: 0; }
@media (max-width: 768px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-nav { order: 2; }
  .cp-main { order: 1; }
}

/* ---------- Control panel nav (侧栏导航) ---------- */
.cpnav .cpnav-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cpnav-item {
  display: block;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: #369;
  background: #fff;
  border: 1px solid #eee;
  transition: background-color .15s, color .15s;
}
.cpnav-item:link, .cpnav-item:visited { color: #369; }
.cpnav-item:hover { background: #f0f4fa; color: #f60; }
.cpnav-item.active {
  background: #588fc7;
  color: #fff;
  border-color: #588fc7;
  font-weight: 600;
}
.cpnav-item.active:link, .cpnav-item.active:visited { color: #fff; }

/* ---------- Control panel info (资料与统计) ---------- */
.cpinfo { padding: 8px 10px; }
.cpinfo-row {
  display: flex;
  flex-wrap: wrap;
  padding: 5px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
  gap: 0.5rem;
}
.cpinfo-row:last-child { border-bottom: 0; }
.cpinfo-label { min-width: 130px; color: #666; }

/* ---------- Favorite space usage bar (收藏空间进度条) ---------- */
.space-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #ddd;
  margin: 0.5rem 0 2px;
}
.space-bar .space-used { background: #FF7B1A; }
.space-bar .space-left { background: #e8e8e8; }
.space-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

/* ---------- No-permission layout (原因 + 登陆 两栏) ---------- */
.noperm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  align-items: start;
}
.noperm-layout .noperm-reasons ul { margin: 6px 0 0; padding-left: 1.5em; }
@media (max-width: 768px) {
  .noperm-layout { grid-template-columns: 1fr; }
}

/* ---------- Register agreement box (注册条款只读文本框) ---------- */
.agreement-box {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  background: #fafafa;
}

/* ---------- Data table alignment helpers ---------- */
.data-table .center { text-align: center; }
.data-table .right { text-align: right; }
.data-table tfoot td { background: #f5f5f5; font-weight: 600; }

/* ================================================================
   阶段 6: 工具模板 (tool / error / information / redirect / print)
   ================================================================ */

/* ---------- Error / Information 通用卡片 ---------- */
.tool-card { margin-top: 1.5rem; }
.tool-card-title { text-align: center; font-size: 16px; padding: 10px 12px; }
.tool-card-title-error { background: #f8d7da; color: #721c24; border-bottom: 1px solid #f5c6cb; }
.tool-card-title-info  { background: #d1ecf1; color: #0c5460; border-bottom: 1px solid #bee5eb; }

/* ---------- Redirect 全屏居中布局 (redirect 模板) ---------- */
.redirect-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f9;
}
.redirect-wrap {
  width: 100%;
  max-width: 640px;
  padding: 1rem;
  box-sizing: border-box;
}
.redirect-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.redirect-card .alert { border: 0; background: transparent; padding: 1.2rem; }

/* ---------- Print 打印页 (article.php?action=print) ---------- */
.print-body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: "SimSun", "宋体", serif;
}
.print-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 36px;
  box-sizing: border-box;
}
.print-title {
  margin: 0 0 10px;
  font-size: 26px;
  text-align: center;
  color: #000;
  font-weight: 700;
}
.print-meta {
  text-align: center;
  color: #555;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #ccc;
  margin-bottom: 10px;
}
.print-source {
  font-size: 12px;
  color: #666;
  padding: 8px 0 16px;
  line-height: 1.7;
}
.print-content-block {
  padding: 10px 0;
}
.print-subhead {
  margin: 16px 0 6px;
  font-size: 16px;
  color: #222;
}
.print-articletext.content, .print-content .content {
  font-size: 15px;
  line-height: 1.85;
  color: #111;
}
.print-editor-line {
  margin-top: 30px;
  padding-top: 8px;
  border-top: 1px dashed #ccc;
  color: #555;
}

/* ---------- Page debug 模板 ---------- */
.page-debug { margin: 0; padding: 12px; background: #f8f8f8; font-family: monospace; }
.page-debug-wrap {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px;
}
.page-debug-head h1 { margin: 0 0 10px; font-size: 20px; }
.page-debug-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}
.page-debug-output, .page-debug-side {
  border: 1px dotted #ccc;
  padding: 8px;
  min-height: 80px;
  background: #fafafa;
}

/* ---------- 强化 Print Media 查询 ---------- */
@media print {
  .redirect-body, .print-body { background: #fff !important; }
  .redirect-wrap, .print-wrap { max-width: none; padding: 0; }
  .redirect-card { box-shadow: none; border: 0; }
  .site-header, .site-footer, .container, .topnav, .header-bar,
  .cp-layout .cp-nav, .noperm-layout, .alert { box-shadow: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
