/* 全局样式 */
/* 定义字体 */
@font-face {
  font-family: "Poppins";
  src: url("../Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../Poppins/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
html {
  overflow-x: hidden;
}
html,
body {
  width: 100%;
  background: #fff;
  font-family: "Poppins";
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins";
  background: #fff;
  color: #222;
}
a {
  text-decoration: none;
  color: inherit;
}
a:focus-visible {
  outline: none;
}
li {
  list-style: none;
}
.container {
  max-width: 1208px;
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 16px;
  }
}
.blog-header {
  background: #f7f8ff;
  padding: 2rem 0 2.75rem;
}
.blog-header .blog-header-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}
.blog-header .blog-header-route .column {
  color: #041e39;
  font-weight: 500;
}
.blog-header .blog-header-route .divider {
  margin: 0 0.125rem;
  width: 1rem;
  height: 1rem;
}
.blog-header .blog-header-route .article {
  color: #929ba5;
}
.blog-header .blog-header-title {
  color: #041e39;
  font-size: 2.625rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.blog-header .blog-header-date {
  color: #4f5c65;
  font-size: 0.875rem;
  font-weight: 500;
}
.section-blog {
  padding: 2.5rem 0;
}
@media (min-width: 900px) {
  .blog-details-container {
    display: flex;
    gap: 40px;
  }
  .blog-main {
    flex: 1 1 0%;
    background: #fff;
    border-radius: 16px;
  }
  .blog-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
  }
  .blog-meta {
    color: #888;
    font-size: 1rem;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
  }
  .blog-cover img {
    width: 100%;
    margin-bottom: 32px;
  }
  .blog-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
  }
  .blog-section {
    margin-bottom: 3.375rem;
  }
  .blog-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #041e39;
  }
  .blog-section p,
  .blog-section ol {
    font-size: 1.125rem;
    color: #4f5c65;
    margin-bottom: 1.5rem;
  }
  .blog-sidebar {
    width: 24.5rem;
    height: fit-content;
  }
  .blog-sidebar .sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1ab394;
  }
  .blog-sidebar .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #dfe6f3;
    max-height: 31.25rem;
    overflow-y: auto;
  }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
  }
  .sidebar-item img {
    width: 7.5rem;
    height: 4.625rem;
    border-radius: 8px;
    object-fit: cover;
  }
  .sidebar-item .sidebar-item-title {
    display: block;
    font-size: 0.875rem;
    color: #041e39;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .sidebar-item .sidebar-item-date {
    color: #929ba5;
    font-size: 0.875rem;
  }
  .sidebar-item:hover .sidebar-item-title {
    color: #1ab394;
  }
}
@media (max-width: 899px) {
  .blog-details-container {
    display: block;
    padding: 0 8px;
    margin-top: 20px;
  }
  .blog-main {
    background: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
  }
  .blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
  }
  .blog-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
  }
  .blog-cover img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 18px;
  }
  .blog-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
  }
  .blog-section {
    margin-bottom: 18px;
  }
  .blog-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
  }
  .blog-section p,
  .blog-section ol {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
  }
  .blog-section ol {
    margin-left: 16px;
  }
  .blog-sidebar {
    width: 100%;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 18px 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
  }
  .sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #222;
  }
  .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex: 1 1 45%;
    min-width: 150px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
    padding: 6px 2px;
  }
  .sidebar-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
  }
  .sidebar-item span {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
  }
}
@media (max-width: 576px) {
  .blog-header {
    padding: 1.875rem 0;
  }
  .blog-header .blog-header-route {
    margin-bottom: 1.25rem;
  }
  .blog-header .blog-header-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  .section-blog {
    padding: 1.875rem 0;
  }
  .section-blog .blog-main {
    padding: 0;
  }
  .blog-sidebar {
    margin-bottom: 0;
  }
  .sidebar-list .sidebar-item {
    flex: 1 1 100%;
  }
}
.blog-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 0 0;
  padding: 24px 0;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.blog-nav a {
  text-decoration: none;
  width: 48%;
  transition: background 0.2s;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
}
.blog-nav a .nav-arrow {
  width: 1rem;
  height: 1rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.blog-nav a .nav-arrow-hover {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  width: 1rem;
  height: 1rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.blog-nav a:hover .nav-arrow {
  opacity: 0;
  visibility: hidden;
}
.blog-nav a:hover .nav-arrow-hover {
  opacity: 1;
  visibility: visible;
}
.blog-nav a:hover .nav-info .nav-label {
  color: #1ab394;
}
.blog-nav a:hover .nav-title {
  color: #1ab394;
}
.blog-nav a .nav-title {
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.blog-nav .blog-nav-prev .nav-info {
  justify-content: flex-start;
}
.blog-nav .blog-nav-prev .nav-arrow {
  margin-right: 16px;
}
.blog-nav .blog-nav-next {
  text-align: right;
}
.blog-nav .blog-nav-next .nav-info {
  justify-content: flex-end;
  text-align: right;
}
.blog-nav .blog-nav-next .nav-arrow {
  margin-left: 16px;
}
.blog-nav .nav-info {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.blog-nav .nav-info img {
  width: 1rem;
  height: 1rem;
}
.blog-nav .nav-info .nav-label {
  font-size: 0.875rem;
  color: #929ba5;
  font-weight: 500;
}
.blog-nav .nav-info .nav-title {
  font-size: 0.9375rem;
  color: #041e39;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
