/* ==========================================================================
   文章栏目 —— 独立版式（不走新闻那张通用皮）
   左栏分类导航 + 右侧文章列表 + 顶部搜索；浅米底、分类色标
   ========================================================================== */

.art-page .module-head { border-bottom: 2px solid #8d6a30; }

/* ---------- 顶部搜索 ---------- */
.art-search {
  display: flex; gap: 8px; align-items: center;
  margin: 0 0 14px;
  padding: 9px 11px;
  background: #fbf7ee;
  border: 1px solid #e0d5c0;
}
.art-search input[type=text] {
  flex: 1;
  padding: 7px 11px;
  border: 1px solid #c9bda6;
  background: #fffdf7;
  font-size: 13px; font-family: inherit;
}
.art-search input[type=text]:focus { outline: none; border-color: #8d6a30; }
.art-search button {
  padding: 7px 20px;
  border: 1px solid #8d6a30;
  background: linear-gradient(#c9a34e, #9e7c2e);
  color: #fff; font-size: 13px; cursor: pointer; font-family: inherit;
}
.art-search button:hover { filter: brightness(1.08); }
.art-clear { font-size: 12px; color: #8a5a20; }

/* ---------- 搜索结果条 ---------- */
.art-resbar {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #f4ecdc;
  border-left: 3px solid #8d6a30;
  font-size: 13px; color: #5c4f3d;
}
.art-resbar b.ok { color: #a8341f; }
.art-resbar mark, .art-list mark {
  background: #ffe9a8;
  color: #8a4a00;
  padding: 0 2px;
  font-weight: bold;
}

/* ---------- 两栏布局 ---------- */
.art-cols { display: flex; gap: 0; align-items: flex-start; }

.art-side {
  flex: 0 0 168px;
  padding-right: 14px;
}
.art-side-hd {
  font-size: 13px; font-weight: bold; color: #fff;
  background: linear-gradient(#9e7c2e, #7d6122);
  padding: 5px 10px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.art-side-hd:not(:first-child) { margin-top: 18px; }

.art-catlist, .art-authors { list-style: none; margin: 0; padding: 0; }
.art-catlist li, .art-authors li { margin-bottom: 5px; }
.art-catlist a, .art-authors a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 9px;
  font-size: 13px;
  color: #4a4034;
  text-decoration: none;
  background: #fbf7ee;
  border: 1px solid #e7dcc6;
}
.art-catlist a:hover, .art-authors a:hover {
  background: #f3ead8; color: #a8341f; border-color: #d5c8ae;
}
.art-catlist .ac-num, .art-authors i {
  font-style: normal; font-size: 11px; color: #a89880;
}
.art-authors li.empty { font-size: 12px; color: #a89880; padding: 4px 9px; }

/* 中间竖分割线 */
.art-divider {
  flex: 0 0 1px;
  align-self: stretch;
  background: linear-gradient(#e0d5c0, #f5efe2 70%, transparent);
}

.art-main { flex: 1; min-width: 0; padding-left: 16px; }
.art-main-hd, .art-cathead {
  font-size: 14px; font-weight: bold; color: #6b5320;
  padding-bottom: 7px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #d8cbb2;
}
.art-main-hd .sub {
  font-size: 11px; font-weight: normal; color: #a89880; margin-left: 10px;
}
.art-catname { font-size: 15px; color: #8d6a30; }
.art-catdesc { font-size: 12px; font-weight: normal; color: #a89880; margin-left: 10px; }
.art-catnum  { font-size: 11px; font-weight: normal; color: #a89880; float: right; }

/* ---------- 文章列表 ---------- */
ul.art-list { list-style: none; margin: 0; padding: 0; }
ul.art-list li {
  position: relative;
  padding: 8px 4px 8px 14px;
  border-bottom: 1px dotted #ddd0b8;
  font-size: 14px;
  overflow: hidden;
}
ul.art-list li:hover { background: #fdfaf3; }
.art-dot {
  position: absolute; left: 2px; top: 15px;
  width: 5px; height: 5px;
  background: #b89b5e;
  transform: rotate(45deg);
}
.art-ttl { color: #4a4034; text-decoration: none; }
.art-ttl:hover { color: #a8341f; text-decoration: underline; }
.art-ttl.bold-red { color: #c00; font-weight: bold; }
.art-au {
  margin: 0 10px;
  color: #8a7a62;
  font-size: 12px;
}
ul.art-list time { float: right; color: #998a76; font-size: 12px; }
ul.art-list li.empty { color: #a89880; font-size: 13px; padding: 14px 4px; }

/* 搜索摘要 */
.art-snip {
  clear: both;
  margin: 5px 0 0;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.75;
  color: #7a6a55;
}

.art-backlink { text-align: right; font-size: 12px; margin: 10px 0 16px; }
.art-backlink a { color: #8a5a20; }

/* ---------- 文章详情页（区别于新闻的白色通用详情） ---------- */
body.mod-article .detail {
  background: #fffdf7;
  border: 1px solid #e7dcc6;
  padding: 22px 26px 26px;
}
body.mod-article .detail-title {
  color: #6b4f18;
  border-bottom: 1px dashed #ddd0b8;
  padding-bottom: 12px;
}
body.mod-article .detail-meta {
  color: #998a76;
  border-bottom: none;
}
body.mod-article .detail-body { color: #3a3128; font-size: 15px; line-height: 2; }
body.mod-article .detail-body p { margin: 0 0 15px; text-indent: 2em; }
body.mod-article .detail-nav { border-top: 1px dashed #ddd0b8; color: #7a6a55; }

/* ---------- 窄屏 ---------- */
@media (max-width: 700px) {
  .art-cols { flex-direction: column; }
  .art-side { flex: none; width: 100%; padding-right: 0; margin-bottom: 16px; }
  .art-divider { display: none; }
  .art-main { padding-left: 0; width: 100%; }

  /* 分类导航在窄屏转两列，省纵向空间 */
  .art-catlist { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .art-catlist li { margin-bottom: 0; }

  .art-search { flex-wrap: wrap; }
  .art-search input[type=text] { flex: 1 1 100%; }
  ul.art-list li { padding-right: 0; }
  ul.art-list time { float: none; display: inline-block; margin-left: 6px; }
  .art-au { margin: 0 6px; }

  body.mod-article .detail { padding: 14px 14px 18px; }
  body.mod-article .detail-body { font-size: 15px; line-height: 1.95; }
}
