/* ============================================================
   参考 jgpy88.com 视觉风格 · 头部与底部样式保留原站
   ============================================================ */

/* ---------- 基础（对应原站 body 设定） ---------- */
* { box-sizing: border-box; }

/* 原站使用的 HarmonyOS 中文字体（webfont） */
@font-face {
  font-family: "HarmonyOS";
  src: url("../assets/fonts/harmonyos_sans_sc_medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background-color: #f5f8fa;
  color: #181c32;
  font-family: "HarmonyOS", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4286;
}

a { color: #409eff; text-decoration: none; }
a:hover { color: #66a3ff; }
img { max-width: 100%; }

.pull-left { float: left; }
.pull-right { float: right; }

.container {
  width: 1170px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  padding: 0;
}

.container::after { content: ""; display: table; clear: both; }

/* ---------- 头部（与参考网站一致） ---------- */
#header {
  height: 86px;
}

.header-middle {
  height: 86px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: rgba(220, 220, 220, 0.85) 1px 1px 3px 1px;
  padding: 0;
}

.guest-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 -15px;
  padding: 20px 20px 15px;
}

.logo { display: block; height: 40px; }
.logo a {
  display: inline;
  font-size: 19px;
  font-weight: 700;
  color: rgba(19, 150, 85, 0.54);
  line-height: 27.14px;
  white-space: nowrap;
}
.logo a:hover { color: rgba(19, 150, 85, 0.54); }
.logo img {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
  vertical-align: middle;
  position: relative;
  top: -3px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.shop-menu { margin-left: auto; }

.shop-menu .guest-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  min-height: 50px;
  margin: 0;
  padding: 0;
}
.guest-nav li { display: block; padding: 0 15px 0 0; }
.guest-nav li:last-child { padding-right: 0; }
.guest-nav a {
  display: block;
  padding: 5px 14px;
  margin: 10px;
  font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  color: #000;
  border-radius: 5px;
  box-shadow: rgba(150, 150, 150, 0.85) 1px 1px 3px 1px;
  white-space: nowrap;
}
.guest-nav a:hover { color: #000; }
.guest-nav a i {
  font-size: 14px;
  color: #000;
  margin-right: 3px;
}

/* ---------- 卡片（对应原站 .card 视觉） ---------- */
.content-wrapper { padding: 15px 0 30px; }

.card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 0;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.01) 0px 6px 0px 0px,
              rgba(237, 169, 195, 0.14) 0px 15px 32px 0px;
  margin-bottom: 15px;
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px dashed #efefef;
  padding: 10px 19.5px;
}

.card-title {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.card-block { padding: 10px 19.5px; }

/* ---------- 主题横幅 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf3fe 0%, #f5f8fe 55%, #fbfdff 100%);
  border: 1px solid #e3eaf7;
  color: #1f2430;
  padding: 30px 34px 28px;
  margin-bottom: 15px;
  box-shadow: rgba(70, 100, 180, 0.08) 0 12px 30px;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(93, 124, 244, 0.07);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(23, 168, 102, 0.06);
}
.hero-title {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.35;
  color: #1f2430;
  position: relative;
  padding-left: 16px;
}
.hero-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #17a866, #0e8b53);
}
.hero-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 博客主体 ---------- */
.blog-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff0000;
}

.blog-block { padding: 15px 19.5px 20px; }

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #9aa3b2;
  margin-bottom: 12px;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #0e8b53; }
.breadcrumb .fa-angle-right { font-size: 11px; opacity: 0.7; }

/* ---------- 两栏布局：左列表 + 右侧边栏 ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 15px;
  align-items: start;
}
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;
  top: 15px;
}
.side-block { padding: 16px 18px; }
.side-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: #1f2430;
  display: flex;
  align-items: center;
  gap: 7px;
}
.side-title .fa { color: #17a866; }
.side-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #6b7280;
}
.side-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #17a866, #0e8b53);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(23, 168, 102, 0.3);
}
.side-btn:hover { color: #fff; opacity: 0.92; }

/* 热门文章 */
.hot-list { list-style: none; margin: 0; padding: 0; }
.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
}
.hot-item + .hot-item { border-top: 1px dashed #f0f2f7; }
.hot-num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: #f0f4f8;
  color: #9aa3b2;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hot-item:nth-child(-n+3) .hot-num {
  background: linear-gradient(135deg, #17a866, #0e8b53);
  color: #fff;
}
.hot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hot-title {
  font-size: 13px;
  color: #1f2430;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-title:hover { color: #0e8b53; }
.hot-meta { font-size: 11.5px; color: #9aa3b2; }

/* 图文列表项：左图右文 */
.blog-list { display: flex; flex-direction: column; gap: 14px; }

.blog-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #f0f2f7;
  border-radius: 14px;
  padding: 14px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.blog-item:hover {
  border-color: rgba(23, 168, 102, 0.35);
  box-shadow: 0 10px 26px rgba(23, 168, 102, 0.12);
  transform: translateY(-2px);
}

/* 头条文章（第一页第一篇） */
.blog-item.featured { padding: 14px; }
.blog-item.featured .post-title { font-size: 20px; }
.blog-item.featured .post-excerpt { -webkit-line-clamp: 3; font-size: 13.5px; }

.blog-item .post-cover {
  flex: 0 0 270px;
  width: 230px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f5;
}
.blog-item .post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.blog-item:hover .post-cover img { transform: scale(1.06); }

.blog-item .post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.post-cate {
  font-size: 12px;
  color: #0e8b53;
  background: rgba(23, 168, 102, 0.1);
  border-radius: 5px;
  padding: 1px 9px;
  white-space: nowrap;
}
.post-date {
  font-size: 12px;
  color: #9aa3b2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-title {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-title a { color: inherit; }
.post-title a:hover { color: #0e8b53; }

.post-excerpt {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta-bottom {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-meta-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9aa3b2;
  font-size: 12px;
}
.post-read-more {
  margin-left: auto;
  font-size: 13px;
  color: #0e8b53;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-read-more:hover { color: #17a866; }

/* 空状态 */
.blog-empty {
  text-align: center;
  color: #9aa3b2;
  padding: 50px 0 40px;
}
.blog-empty i { font-size: 42px; opacity: 0.4; }
.blog-empty p { margin: 10px 0 0; }

/* 分页（div.page > ul > li 结构） */
.blog-pagination { margin-top: 22px; }
.page ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.page a, .page span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  background: #fff;
  color: #555f6e;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s;
}
.page a:hover {
  border-color: rgba(23, 168, 102, 0.5);
  color: #0e8b53;
}
.page li.active span {
  background: linear-gradient(135deg, #17a866, #0e8b53);
  border-color: transparent;
  color: #fff;
}
.page li:not(.active) span { opacity: 0.45; }

/* ---------- 博客详情页 ---------- */
.article-block { padding: 22px 26px 24px; }

.article-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #efefef;
  font-size: 12.5px;
  color: #9aa3b2;
}
.article-meta > span, .article-meta > time { display: inline-flex; align-items: center; gap: 5px; }

.article-cover {
  margin: 18px 0 6px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f5;
}
.article-cover img { width: 100%; display: block; }

.article-content { padding-top: 10px; }

.article-content p {
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.95;
  color: #3d4351;
}

.content-h {
  margin: 26px 0 10px;
  font-size: 17.5px;
  font-weight: 700;
  color: #1f2430;
  padding-left: 12px;
  position: relative;
}
.content-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #17a866, #0e8b53);
}

.content-list {
  margin: 12px 0;
  padding-left: 6px;
  list-style: none;
}
.content-list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4351;
}
.content-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17a866;
  opacity: 0.85;
}

.content-quote {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(23, 168, 102, 0.06);
  border-left: 4px solid #17a866;
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #2f6b4f;
}
.content-quote .fa-quote-left { margin-right: 8px; opacity: 0.55; }

.article-footer-bar {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed #efefef;
  display: flex;
}
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid #e6e9f0;
  border-radius: 999px;
  color: #555f6e;
  font-size: 13px;
  transition: all 0.2s;
}
.back-to-list:hover {
  border-color: rgba(23, 168, 102, 0.5);
  color: #0e8b53;
}

/* 上一篇 / 下一篇 */
.article-pager {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}
.pager-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: rgba(237, 169, 195, 0.14) 0px 8px 20px 0px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}
.pager-item:hover {
  box-shadow: rgba(23, 168, 102, 0.2) 0px 10px 24px 0px;
  transform: translateY(-2px);
}
.pager-item.empty { visibility: hidden; }
.pager-item.next { text-align: right; }
.pager-label { font-size: 12px; color: #9aa3b2; }
.pager-label .fa { margin: 0 3px; }
.pager-title {
  font-size: 13.5px;
  color: #1f2430;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pager-item:hover .pager-title { color: #0e8b53; }

/* 相关阅读 */
.related-title { color: #ff0000; display: flex; align-items: center; gap: 8px; }
.related-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #f0f2f7;
  border-radius: 12px;
  padding: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-item:hover {
  border-color: rgba(23, 168, 102, 0.35);
  box-shadow: 0 8px 20px rgba(23, 168, 102, 0.1);
}
.related-cover {
  flex: 0 0 96px;
  width: 96px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f5;
}
.related-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.related-title {
  font-size: 13px;
  color: #1f2430;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-item:hover .related-title { color: #0e8b53; }
.related-meta { font-size: 12px; color: #9aa3b2; }

/* ---------- 底部（保留参考网站） ---------- */
.app-footer {
  padding: 0;
  color: #181c32;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  #header, .header-middle { height: auto; }
  .guest-header-row { flex-direction: column; gap: 4px; padding: 12px 15px; margin: 0; }
  .logo a { font-size: 16px; }

  .guest-nav { justify-content: flex-start; min-height: 0; }
  .guest-nav a { padding: 5px 9px; font-size: 13px; margin: 5px 10px 5px 0; }
  .guest-nav li { padding: 0; }

  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }

  .page-hero { padding: 22px 20px 20px; }
  .hero-title { font-size: 21px; }
  .hero-sub { font-size: 13px; white-space: normal; }

  .blog-item { flex-direction: column; }
  .blog-item .post-cover {
    flex: none;
    width: 100%;
    height: 180px;
    order: -1;
  }
  .blog-item.featured .post-title { font-size: 17px; }

  .article-block { padding: 18px 16px 20px; }
  .article-title { font-size: 20px; }
  .article-pager { flex-direction: column; }
  .pager-item.empty { display: none; }
  .related-list { grid-template-columns: 1fr; }
}
