:root.hfBlogRoot {
  --hf-blog-bg: #f5f3f0;
  --hf-blog-ink: #4a4a4a;
  --hf-blog-muted: #999;
  --hf-blog-border: #e8e5e1;
  --hf-blog-card: #ffffff;
  --hf-blog-accent: #6b5d52;
  --hf-blog-accent-weak: #d4cec7;
}

.hfBlogRoot body {
  margin: 0;
  background: var(--hf-blog-bg);
  color: var(--hf-blog-ink);
  font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
  .hfBlogRoot body {
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hfBlogRoot body::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

.hfBlogShell {

  margin: 0 auto;

}

.hfAppTopBar.hfBlogTopbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #fff;
  border-bottom: 1px solid var(--hf-blog-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hfAppTopBarInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hfBlogBrandLink {
  text-decoration: none;
}

.hfAppBrandLine {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  letter-spacing: 0.12rem;
  color: var(--hf-blog-accent);
}

.hfAppBrandZh {
  font-size: 1.1rem;
  font-weight: 600;
}

.hfAppBrandSep {
  display: inline-block;
  width: 0.4rem;
}

.hfAppBrandEn {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08rem;
  color: var(--hf-blog-muted);
}

.hfBlogTopbarRight {
  display: flex;
  gap: 1rem;
}

.hfBlogTopbarBtn {
  background: transparent;
  border: 1px solid var(--hf-blog-accent-weak);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  color: var(--hf-blog-accent);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-decoration: none;
}

.hfBlogTopbarBtn:hover {
  background-color: var(--hf-blog-accent);
  color: #fff;
}

.hfBlogContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hfBlogSearch {
  margin-bottom: 3rem;
  position: relative;
}

.hfBlogSearchInput {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 1px solid var(--hf-blog-border);
  border-radius: 12px;
  font-size: 0.95rem;
  background-color: #fff;
  color: var(--hf-blog-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hfBlogSearchInput::placeholder {
  color: #b8b0a8;
}

.hfBlogSearchIcon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b8b0a8;
}

.hfBlogList {
  margin-bottom: 2rem;
}

.hfMasonry {
  position: relative;
}

.hfMasonrySizer,
.hfMasonryItem {
  width: calc(50% - 9px);
}

.hfMasonryItem {
  margin-bottom: 18px;
}

.hfMasonryHidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.hfMasonrySentinel {
  width: 100%;
  height: 1px;
}

.hfBlogSplit {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
  height: calc(100vh - 140px);
}

.hfBlogSplitVisual {
  position: relative;
  height: 100%;
}

.hfBlogVisualInner {
  background: #c2a57e;
  border-radius: 18px;
  border: 1px solid var(--hf-blog-border);
  min-height: 520px;
  height: 70%;
  padding: 2.4rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hfBlogVisualBrand {
  font-size: 2rem;
  letter-spacing: 0.3rem;
  color: #7b1f2b;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.hfBlogVisualSub {
  font-size: 0.95rem;
  letter-spacing: 0.12rem;
  color: rgba(123, 31, 43, 0.75);
  position: relative;
  z-index: 2;
}

.hfBlogVisualLine {
  height: 1px;
  width: 64px;
  background: rgba(123, 31, 43, 0.4);
  margin: 0.6rem 0;
  position: relative;
  z-index: 2;
}

.hfBlogVisualHint {
  font-size: 0.95rem;
  color: rgba(123, 31, 43, 0.85);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hfBlogOrbit {
  position: absolute;
  inset: -30% -20% -20% -40%;
  display: block;
  animation: hfBlogOrbitSpin 22s linear infinite;
  z-index: 1;
}

.hfBlogOrbitLine {
  position: absolute;
  border: 1px solid rgba(123, 31, 43, 0.2);
  border-radius: 999px;
  inset: 10%;
}

.hfBlogOrbitLineOuter {
  inset: 2%;
  border-color: rgba(123, 31, 43, 0.18);
}

.hfBlogOrbitLineInner {
  inset: 16%;
  border-style: dashed;
  border-color: rgba(123, 31, 43, 0.26);
}

.hfBlogOrbitSun,
.hfBlogOrbitMoon {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: #7b1f2b;
  opacity: 0.9;
}

.hfBlogOrbitSun {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 18px rgba(123, 31, 43, 0.15);
}

.hfBlogOrbitMoon {
  bottom: -60px;
  right: 45%;
  width: 180px;
  height: 180px;
  opacity: 0.8;
  box-shadow: 0 0 0 14px rgba(123, 31, 43, 0.12);
}

@keyframes hfBlogOrbitSpin {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hfBlogCard {
  background: var(--hf-blog-card);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 1px solid #f0ede9;
}

.hfBlogCard:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.hfBlogCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hfBlogCardCategory {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex: 1;
}

.hfBlogCategoryLabel {
  font-size: 0.85rem;
  color: var(--hf-blog-muted);
}

.hfBlogCategoryBadge {
  background-color: #7b9e87;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hfBlogPostTitle {
  font-size: 1.1rem;
  color: var(--hf-blog-ink);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.hfBlogPostTitle a {
  color: var(--hf-blog-ink);
  text-decoration: none;
}

.hfBlogPostTitle a:hover {
  color: #5b8c6f;
}

.hfBlogExcerpt {
  font-size: 0.9rem;
  color: #7a7a7a;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hfBlogMeta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--hf-blog-muted);
}

.hfBlogActionBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f5f3f0;
}

.hfBlogStatusBadge {
  display: inline-block;
  background-color: #e8f5e9;
  color: #5b8c6f;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.hfBlogActionLink {
  color: #7b9e87;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hfBlogActionLink:hover {
  color: #5b8c6f;
}

.hfBlogArticleBack {
  margin-bottom: 12px;
}

.hfBlogBackLink {
  color: #7b1f2b;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06rem;
}

.hfBlogBackLink:hover {
  opacity: 0.8;
}

.hfBlogArticle {
  margin-top: 0px;
}

.hfBlogH1 {
  font-size: 2rem;
  letter-spacing: 0.12rem;
  color: var(--hf-blog-ink);
}

.hfBlogLead {
  font-size: 1rem;
  color: var(--hf-blog-muted);
  line-height: 1.8;
}

.hfBlogArticle h2 {
  margin: 26px 0 10px;
  font-size: 20px;
  color: var(--hf-blog-ink);
}

.hfBlogArticle p,
.hfBlogArticle li {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--hf-blog-ink);
}

.hfBlogArticle a {
  color: #7b9e87;
}

.hfBlogDivider {
  height: 1px;
  background: var(--hf-blog-border);
  margin: 18px 0;
}

.hfBlogImage {
  margin: 18px 0;
}

.hfBlogImageFrame {
  border: 1px solid var(--hf-blog-border);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  overflow: hidden;
}

.hfBlogImageFrame img {
  width: 100%;
  height: auto;
  display: block;
}

.hfBlogCaption {
  font-size: 12px;
  color: var(--hf-blog-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.hfBlogLoadMore {
  text-align: center;
  margin-top: 3rem;
}

.hfBlogLoadMoreBtn {
  background-color: #fff;
  border: 1px solid var(--hf-blog-accent-weak);
  padding: 0.9rem 3rem;
  border-radius: 10px;
  color: var(--hf-blog-accent);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hfBlogLoadMoreBtn:hover {
  background-color: var(--hf-blog-accent);
  color: #fff;
}

.hfBlogSplitList {
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.hfBlogSplitList::-webkit-scrollbar {
  width: 8px;
}

.hfBlogSplitList::-webkit-scrollbar-track {
  background: #eee7de;
  border-radius: 6px;
}

.hfBlogSplitList::-webkit-scrollbar-thumb {
  background: rgba(123, 31, 43, 0.35);
  border-radius: 6px;
}

.hfBlogSplitList::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 31, 43, 0.55);
}

@media (max-width: 768px) {
  .hfBlogContainer {
    padding: 2rem 1.2rem;
  }

  .hfBlogSplit {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hfBlogSplitVisual {
    display: none;
  }

  .hfBlogSplitList {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .hfBlogList {
    margin-bottom: 1.5rem;
  }

  .hfAppTopBarInner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
  }

  .hfBlogTopbarRight {
    width: 100%;
    flex-wrap: wrap;
  }

  .hfBlogH1 {
    font-size: 1.6rem;
    letter-spacing: 0.08rem;
  }

  .hfBlogLead {
    font-size: 0.95rem;
  }
}

@media (max-width: 960px) {
  .hfMasonrySizer,
  .hfMasonryItem {
    width: 84%;
  }
}

.hfBlogSplitList {
  min-width: 0;
}

.hfBlogArticle {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hfBlogArticle pre {
  max-width: 100%;
  overflow-x: auto;
  background: #f7f4f1;
  border: 1px solid var(--hf-blog-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.hfBlogArticle code {
  word-break: break-all;
}
