/* 前台样式：结构、排版与配色参照参考站，保持简洁、资讯列表风格 */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: #1a3a6b;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部 */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-logo {
  display: inline-block;
  line-height: 0;
}

.brand-logo img {
  height: 52px;
  width: auto;
}

.brand-text {
  text-align: right;
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* 主体两栏 */
.main {
  padding: 24px 0 40px;
  min-height: 60vh;
  flex: 1 0 auto;
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.col-main {
  flex: 1;
  min-width: 0;
}

.col-side {
  width: 340px;
  flex-shrink: 0;
}

/* 面板 */
.panel {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a3a6b;
}

/* 文章列表 */
.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-item {
  padding: 18px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.article-item:first-child {
  padding-top: 0;
}

.article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-title {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 10px;
}

.article-title a {
  color: #222;
  transition: color 0.2s;
}

.article-title a:hover {
  color: #1a3a6b;
}

.article-desc {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 13px;
  color: #999;
}

.article-meta .date {
  color: #aaa;
}

/* 侧栏 */
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  padding: 10px 0;
  border-bottom: 1px dotted #eee;
}

.side-list li:last-child {
  border-bottom: none;
}

.side-list a {
  display: block;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-list a:hover {
  color: #1a3a6b;
}

.side-list .date {
  font-size: 12px;
  color: #aaa;
}

/* 分页 */
.pagination {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f1f3;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.pagination > span {
  display: inline-block;
  margin: 0 4px 6px;
}

.pagination .page-status {
  color: #999;
}

.pagination a {
  display: inline-block;
  min-width: 30px;
  padding: 3px 9px;
  border: 1px solid #e3e6ea;
  border-radius: 3px;
  background: #fff;
  color: #555;
}

.pagination a:hover {
  border-color: #1a3a6b;
  color: #1a3a6b;
}

.pagination a.page-num-current {
  background: #1a3a6b;
  border-color: #1a3a6b;
  color: #fff;
}

.pagination .page-num {
  margin: 0 2px;
}

/* 文章详情 */
.detail-title {
  font-size: 26px;
  line-height: 1.45;
  color: #222;
  margin: 0 0 16px;
  font-weight: 700;
}

.detail-meta {
  font-size: 13px;
  color: #999;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.detail-body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  word-wrap: break-word;
}

.detail-body p {
  margin: 0 0 1em;
}

.detail-body img {
  max-width: 100%;
  height: auto;
}

.detail-body h2 {
  font-size: 18px;
  line-height: 1.6;
  margin: 1.4em 0 0.7em;
  color: #000;
  font-weight: 700;
}

.detail-body h3 {
  font-size: 16px;
  line-height: 1.6;
  margin: 1.2em 0 0.6em;
  color: #000;
  font-weight: 700;
}

.detail-disclaimer {
  margin-top: 28px;
  padding: 18px 20px;
  background: #4a4a4a;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.85;
}

.detail-disclaimer p {
  margin: 0 0 8px;
  color: #c8c8c8;
  word-break: break-all;
}

.detail-disclaimer p:first-child {
  color: #ff3b30;
  font-weight: 500;
}

.detail-disclaimer p:last-child {
  margin-bottom: 0;
}

.detail-disclaimer a {
  color: #c8c8c8;
}

.detail-disclaimer a:hover {
  color: #fff;
  text-decoration: underline;
}

.detail-nav {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #e5e7eb;
  font-size: 14px;
  color: #666;
}

.detail-nav p {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-nav a {
  color: #1a3a6b;
}

.detail-nav a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  background: #2c3e50;
  color: rgba(255, 255, 255, 0.75);
  padding: 24px 0;
  text-align: center;
  position: relative;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 13px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .icp {
  font-size: 12px;
}

.backtop {
  position: fixed;
  right: 24px;
  bottom: 40px;
  width: 42px;
  height: 42px;
  line-height: 40px;
  text-align: center;
  background: #1a3a6b;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 99;
  font-size: 16px;
}

.backtop:hover {
  background: #254a85;
  color: #fff;
}

/* 响应式 */
@media (max-width: 991px) {
  .layout {
    flex-direction: column;
  }

  .col-side {
    width: 100%;
  }

  .brand-text {
    text-align: left;
  }

  .article-title {
    font-size: 17px;
  }

  .detail-title {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .panel {
    padding: 16px 15px;
  }

  .brand-logo img {
    height: 44px;
  }
}
