/* 18183传奇发布站 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  font-size: 15px; color: #333; background: #f5f5f5; line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; border: 0; }
a { color: #c81623; text-decoration: none; }
a:hover { color: #a0121b; text-decoration: underline; }
ul, ol { list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

.site-top { background: #1a1a1a; color: #fff; }
.top-wrap { display: flex; align-items: center; justify-content: space-between; padding: 22px 15px; flex-wrap: wrap; gap: 15px; }
.brand-title { font-size: 26px; font-weight: 700; }
.brand-title a { color: #f5d76e; }
.brand-title a:hover { color: #ffe98a; text-decoration: none; }
.brand-sub { font-size: 13px; color: #aaa; margin-top: 4px; }
.top-search form { display: flex; }
.top-search input { width: 220px; padding: 8px 10px; border: 1px solid #444; border-right: 0;
  background: #2a2a2a; color: #fff; border-radius: 3px 0 0 3px; outline: none; }
.top-search input:focus { border-color: #c81623; }
.top-search button { padding: 8px 16px; border: 0; background: #c81623; color: #fff;
  cursor: pointer; border-radius: 0 3px 3px 0; font-size: 14px; }
.top-search button:hover { background: #a0121b; }

.site-nav { background: #c81623; }
.nav-wrap { display: flex; align-items: center; }
.logo { display: none; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list li a { display: block; padding: 13px 20px; color: #fff; font-size: 16px; transition: background .2s; }
.nav-list li a:hover, .nav-list li.active a { background: #a0121b; text-decoration: none; }

.container { max-width: 1180px; margin: 20px auto; padding: 0 15px; }
.layout { display: flex; gap: 20px; align-items: flex-start; }
.main { flex: 1; min-width: 0; }
.side { width: 300px; flex-shrink: 0; }

.cat-head { background: #fff; padding: 14px 18px; border-left: 4px solid #c81623; margin-bottom: 16px; }
.cat-head h2 { font-size: 20px; color: #222; }
.cat-head .cat-desc { font-size: 13px; color: #888; margin-top: 4px; }

.card { background: #fff; padding: 18px; margin-bottom: 16px; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card-title { font-size: 19px; color: #222; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.card-title .more { float: right; font-size: 13px; font-weight: 400; color: #999; }
.card-title .more:hover { color: #c81623; }

.post-list li { padding: 12px 0; border-bottom: 1px dashed #eee; }
.post-list li:last-child { border-bottom: 0; }
.post-list .pt { font-size: 16px; display: block; }
.post-list .pt:hover { color: #c81623; }
.post-list .meta { font-size: 12px; color: #999; margin-top: 4px; }
.post-list .meta span { margin-right: 14px; }

.rank-list li { padding: 9px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .num { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center;
  background: #ddd; color: #fff; font-size: 12px; border-radius: 2px; margin-right: 8px; }
.rank-list .n1 { background: #c81623; }
.rank-list .n2 { background: #e67e22; }
.rank-list .n3 { background: #f1c40f; }

.crumb { font-size: 13px; color: #888; margin-bottom: 12px; }
.crumb a { color: #888; }
.crumb a:hover { color: #c81623; }
.crumb span.sep { margin: 0 6px; color: #ccc; }

.article { background: #fff; padding: 28px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.article h1 { font-size: 26px; color: #222; line-height: 1.5; margin-bottom: 12px; }
.article .a-meta { font-size: 13px; color: #999; padding-bottom: 14px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.article .a-meta span { margin-right: 16px; }
.article .a-content { font-size: 16px; line-height: 2; color: #333; }
.article .a-content p { margin-bottom: 18px; text-indent: 2em; text-align: justify; }
.article .a-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; font-size: 14px; }
.article .a-tags b { color: #666; margin-right: 6px; }
.article .a-tags a { display: inline-block; background: #f0f0f0; padding: 3px 10px; margin: 0 4px 4px 0; border-radius: 2px; color: #555; }
.article .a-tags a:hover { background: #c81623; color: #fff; text-decoration: none; }

.relate-list li { padding: 10px 0; border-bottom: 1px dashed #eee; }
.relate-list li:last-child { border-bottom: 0; }
.relate-list a { font-size: 15px; }

.side .card { padding: 15px; }
.side .card-title { font-size: 16px; }
.tj-list li { padding: 9px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.tj-list li:last-child { border-bottom: 0; }

.site-foot { background: #1a1a1a; color: #999; padding: 28px 0 20px; margin-top: 30px; font-size: 13px; }
.foot-links a { color: #ccc; margin-right: 14px; }
.foot-links a:hover { color: #f5d76e; }
.foot-about { margin: 12px 0; color: #777; line-height: 1.9; }
.copyright { color: #666; border-top: 1px solid #2a2a2a; padding-top: 14px; }
.copyright a { color: #999; }

.notice { background: #fff9e6; border: 1px solid #f0e0b0; padding: 12px 16px; margin-bottom: 16px; color: #8a6d1a; font-size: 14px; border-radius: 2px; }

.pager { text-align: center; margin: 20px 0; }
.pager a, .pager span { display: inline-block; padding: 6px 14px; margin: 0 3px; background: #fff; border: 1px solid #ddd; color: #666; border-radius: 2px; }
.pager span { background: #c81623; color: #fff; border-color: #c81623; }

.notfound { text-align: center; padding: 80px 20px; background: #fff; }
.notfound h2 { font-size: 60px; color: #c81623; }
.notfound p { font-size: 16px; color: #888; margin: 14px 0 24px; }

.search-tip { background: #fff; padding: 16px; margin-bottom: 16px; color: #666; font-size: 14px; }
.search-tip a { margin-right: 6px; }

.about-txt { background: #fff; padding: 28px; line-height: 2; font-size: 15px; color: #444; }
.about-txt h2 { font-size: 22px; color: #222; margin-bottom: 12px; }
.about-txt h3 { font-size: 18px; color: #222; margin: 18px 0 8px; }
.about-txt p { margin-bottom: 12px; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .side { width: 100%; }
  .top-search { width: 100%; }
  .top-search input { flex: 1; width: auto; }
  .nav-list li a { padding: 11px 14px; font-size: 15px; }
  .article { padding: 18px; }
  .article h1 { font-size: 21px; }
  .article .a-content { font-size: 15px; }
  .layout[style] { flex-direction: column !important; }
}
@media (max-width: 600px) {
  .brand-title { font-size: 21px; }
  .nav-list { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
}
