/* ------------------------------------
 * Typecho Default Theme
 *
 * @author  Typecho Team
 * @link  http: //typecho.org/
 * @update  2013-10-28
 * --------------------------------- */

/* ------------------
 * Global style
 * --------------- */
html {
  overflow-y: scroll;
}

body {
  background-color: #f1f1f1;
  color: #333;
  /* font-family: "Consolas", "Microsoft JhengHei", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #3354AA;
  text-decoration: none;
}
a:hover, a:active {
  color: #444;
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  padding: 3px;
  color: #444;
}

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #E9E9E9;
  width: 100%;

  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}


/* Special link style */
.post-meta a,
.post-content a,
.widget a,
.comment-content a {
  border-bottom: 1px solid #EEE;
}

.post-meta a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}

/* ------------------
 * Header - 双层导航栏
 * --------------- */

:root {
  --theme-color: #009688;
  --text-color: #333;
  --text-light: #666;
  --text-muted: #999;
  --border-color: #e4e8eb;
  --bg-gray: #f1f1f1;
  --box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

/* 固定导航栏容器 */
.header-fixed {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* 内容区域顶部间距 */
#body {
  margin-top: 120px;
}

@media (max-width: 767px) {
  #body {
    /* margin-top: 60px; */
  }
}

#header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
}

.site-logo {
  flex-shrink: 0;
  margin-right: 30px;
}

.site-logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 1.3em;
  font-weight: 500;
  text-decoration: none;
}

.site-logo img {
  max-height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

#nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}

#nav-menu .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 60px;
  color: var(--text-color);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

#nav-menu .nav-item:hover,
#nav-menu .nav-item.current {
  color: var(--theme-color);
}

#nav-menu .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--theme-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#nav-menu .nav-item:hover::after,
#nav-menu .nav-item.current::after {
  width: 100%;
}

.header-search {
  flex-shrink: 0;
  margin-left: auto;
}

.search-toggle {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
}

.search-toggle:hover {
  color: var(--theme-color);
}

/* 搜索弹窗 */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal.active {
  display: flex;
}

.search-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.search-modal-content form {
  display: flex;
  gap: 10px;
}

.search-modal-content input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
}

.search-modal-content input:focus {
  outline: none;
  border-color: var(--theme-color);
}

.search-modal-content button[type="submit"] {
  padding: 12px 25px;
  background: var(--theme-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

.search-modal-content button[type="submit"]:hover {
  opacity: 0.9;
}

.search-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.search-close:hover {
  color: #333;
}

/* ------------------
 * 分类导航栏（第二层）
 * --------------- */
#category-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
}

.category-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 45px;
}

.cat-item {
  position: relative;
  height: 45px;
  display: flex;
  align-items: center;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 45px;
  color: var(--text-color);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cat-link:hover,
.cat-link.current {
  color: var(--theme-color);
}

.cat-arrow {
  margin-left: -8px;
  margin-right: 8px;
  color: var(--text-color);
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.cat-item:hover .cat-arrow {
  transform: rotate(180deg);
  color: var(--theme-color);
}

/* 下拉菜单 */
.cat-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--box-shadow);
  min-width: 120px;
  padding: 5px 0;
  z-index: 100;
}

.cat-item:hover .cat-dropdown {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item.current {
  color: var(--theme-color);
  background: var(--bg-gray);
}

.description {
  display: none;
}


/* ------------------
 * Main
 * --------------- */

.post {
  padding: 15px 0 20px;
  border-bottom: 1px solid #EEE;
}
.post-title {
  margin: .83em 0;
  font-size: 1.4em;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #999;
  font-size: .92857em;
}
.post-meta li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
.post-meta li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
}
.post .tags {
  clear: both;
}

.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}

.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #999;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}

/* Page nav */

.page-navigator {
  list-style: none;
  /* margin: 25px 0; */
  padding: 15px 0;
  text-align: center;
  border-radius: 3px;
  /* background: #fff; */
  /* box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05); */
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 12px;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
  color: var(--text-color);
}
.page-navigator a:hover {
  background: var(--theme-color);
  color: #fff;
  text-decoration: none;
}

.page-navigator .current a {
  color: #fff;
  background: var(--theme-color);
}

/* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border: 1px solid #EEE;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}
.widget {
  margin-bottom: 30px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}

.widget-list li ul {
  margin-left: 15px;
}


/* ------------------
 * Footer 
 * --------------- */
#footer {
  background: #fff;
  padding: 30px 0;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-left {
  flex-shrink: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 35px;
  border-radius: 50%;
}

.footer-logo .logo-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
}

.footer-logo .logo-tag {
  background: var(--theme-color);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
}

.footer-stats {
  margin-bottom: 8px;
}

.footer-stats .stats-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--theme-color);
  line-height: 1;
}

.footer-stats .stats-unit {
  font-size: 14px;
  color: var(--theme-color);
  margin-left: 5px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-right {
  flex: 1;
  max-width: 700px;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--theme-color);
}

.footer-links .sep {
  color: #ddd;
  margin: 0 8px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copyright a {
  color: var(--theme-color);
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.footer-copyright .sep {
  color: #ddd;
  margin: 0 8px;
}

/* Footer 响应式 */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 25px;
  }
  
  .footer-left {
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-right {
    max-width: 100%;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-disclaimer,
  .footer-copyright {
    text-align: center;
  }
}


/* -----------------
 * Error page
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}


/* -----------------
 * Content format
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* hidden img parent link border  */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}


/* -----------------
 * Misc
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}


/* -----------------
 * Responsive
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  
  .header-inner {
    height: 55px;
    padding: 0 15px;
  }
  
  .site-logo {
    margin-right: 20px;
  }
  
  .site-logo a {
    font-size: 1.2em;
  }
  
  #nav-menu {
    display: none;
  }
  
  #category-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-nav-inner {
    padding: 0 15px;
    min-width: max-content;
  }
  
  .cat-link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .post-title,
  .post-meta {
    text-align: center;
  }
}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
}


/*
* Hide from both screenreaders and browsers: h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden; }

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

/*
* Hide visually and from screenreaders, but maintain layout
*/
.invisible {
  visibility: hidden; }


/* ------------------
 * 分类标签栏样式
 * --------------- */
.category-bar {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px 25px;
  margin-top: 25px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.category-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.category-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-label {
  flex-shrink: 0;
  width: 50px;
  font-size: 14px;
  color: #E6A23C;
  font-weight: 500;
  line-height: 32px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.category-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.category-tag:hover {
  background: #f5f5f5;
  border-color: #c0c4cc;
  color: #333;
}

.category-tag.active {
  background: #E6A23C;
  border-color: #E6A23C;
  color: #fff;
  font-weight: 500;
}

/* ------------------
 * 文章库标题
 * --------------- */
.section-title {
  padding: 15px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.section-title span {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  position: relative;
  padding-left: 12px;
}

.section-title span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #3354AA;
  border-radius: 2px;
}

/* ------------------
 * 文章卡片网格
 * --------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.post-card {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.post-card:hover {
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: none !important;
  height: 100%;
}

.post-card-link:hover {
  border-bottom: none !important;
}

/* 封面图区域 */
.post-card-thumb {
  position: relative;
  width: 100%;
  background: #f8f8f8;
  overflow: hidden;
}

.post-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* 底部字体名称 */
.post-card-info {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.post-card-name {
  display: block;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card:hover .post-card-name {
  color: var(--theme-color);
}

/* 空内容提示 */
.empty-content {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

/* 归档页标题 */
.archive-header {
  padding: 0 0 20px;
}

.archive-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.archive-desc {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .category-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .category-label {
    width: auto;
    line-height: 1.4;
  }
  
  .category-nav {
    gap: 8px;
  }
  
  .category-tag {
    padding: 5px 14px;
    font-size: 13px;
  }
}

/* ------------------
 * 面包屑导航
 * --------------- */
.breadcrumb {
  /* padding: 15px 0; */
  font-size: 13px;
  color: #999;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #3354AA;
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb .current {
  color: #333;
}

/* ------------------
 * 文章详情页
 * --------------- */
.post-detail {
  background: #fff;
  padding: 30px;
  margin-top: 15px;
  border-radius: 3px;
  box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.post-detail-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0 0 30px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.post-detail-content {
  line-height: 1.8;
  font-size: 15px;
  color: #444;
}

.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4 {
  margin: 25px 0 15px;
  padding-left: 12px;
  border-left: 4px solid #E6A23C;
  font-weight: 600;
}

.post-detail-content h2 {
  font-size: 20px;
}

.post-detail-content h3 {
  font-size: 18px;
}

.post-detail-content p {
  margin: 15px 0;
}

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

/* 文章标签 */
.post-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: var(--text-light);
}

.post-tags .tags-label {
  color: var(--text-muted);
}

.post-tags a {
  color: var(--theme-color);
  margin-right: 8px;
}

.post-tags a:hover {
  text-decoration: underline;
}

/* ------------------
 * 下载信息卡片
 * --------------- */
#download-sidebar {
  padding-top: 15px;
}

.download-card {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  position: sticky;
  top: 120px;
  box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.download-card-title {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.download-card-info {
  padding: 18px 20px;
}

.info-row {
  display: flex;
  margin-bottom: 15px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-item {
  flex: 1;
  font-size: 13px;
}

.info-label {
  color: #999;
  margin-right: 10px;
}

.info-value {
  color: #333;
}

/* 下载按钮 */
.download-card-btn {
  padding: 18px 20px;
  border-top: 1px solid #f0f0f0;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  background: var(--theme-color);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-download:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-download .btn-icon {
  margin-right: 6px;
  font-size: 16px;
}

.btn-download.disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-download.disabled:hover {
  background: #ccc;
  opacity: 1;
}

/* 移动端下载卡片 - 默认隐藏 */
.download-card-mobile {
  display: none;
}

/* 文章详情页响应式 */
@media (max-width: 992px) {
  #download-sidebar {
    display: none;
  }
  
  .download-card-mobile {
    display: block;
    margin: 25px 0;
  }
  
  .download-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .post-detail {
    padding: 20px 15px;
    /* margin-top: 60px; */
  }
  
  .post-detail-title {
    font-size: 22px;
  }
}
/* ------------------
 * 字体预览组件
 * --------------- */
.font-preview-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e4e8eb;
    border-radius: 3px;
}

.font-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e8eb;
}

.font-preview-box {
    position: relative;
}

.font-preview-display {
    min-height: 80px;
    padding: 20px;
    /* background: #f9f9f9; */
    border: 1px solid #eee;
    border-radius: 3px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.font-preview-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.font-preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    display: none;
}

.font-preview-loading.active {
    display: block;
}

.font-preview-display.loading .font-preview-img {
    opacity: 0.3;
}

.font-preview-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.font-preview-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s;
}

.font-preview-input:focus {
    border-color: var(--theme-color);
}

.font-preview-input::placeholder {
    color: #bbb;
}

.font-preview-weight {
    width: 120px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.font-preview-weight:focus {
    border-color: var(--theme-color);
}

.font-preview-btn {
    width: 80px;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    color: #fff;
    background: var(--theme-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.font-preview-btn:hover {
    opacity: 0.9;
}

.font-preview-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 字体预览响应式 */
@media (max-width: 768px) {
    .font-preview-wrapper {
        padding: 15px;
        margin: 15px 0;
    }
    
    .font-preview-controls {
        flex-wrap: wrap;
    }
    
    .font-preview-input {
        width: 100%;
        flex: none;
    }
    
    .font-preview-weight {
        flex: 1;
    }
    
    .font-preview-btn {
        flex: 1;
    }
}

/* ------------------
 * 温馨提示样式
 * --------------- */
.download-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    background: #fffbf0;
    border: 1px solid #ffe4a0;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.6;
    color: #946a00;
}

.download-tip .tip-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.download-tip .tip-text {
    flex: 1;
}
/* ------------------
 * 相关字体推荐
 * --------------- */
.related-fonts {
    background: #fff;
    border-radius: 3px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.related-fonts-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e8eb;
}

.related-fonts-title .title-icon {
    font-size: 18px;
}

/* 上一个/下一个字体导航 */
.font-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    background: #fff;
    border-radius: 3px;
    padding: 20px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.font-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px;
    border-radius: 6px;
    background: #f8f9fa;
    text-decoration: none;
    transition: all 0.2s;
}

.font-nav-item:hover {
    background: #e8f0fe;
}

.font-nav-item.disabled {
    opacity: 0.5;
    cursor: default;
}

.font-nav-item.disabled:hover {
    background: #f8f9fa;
}

.font-nav-prev {
    align-items: flex-start;
}

.font-nav-next {
    align-items: flex-end;
    text-align: right;
}

.font-nav-item .nav-label {
    font-size: 12px;
    color: #666;
}

.font-nav-item .nav-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.font-nav-item:hover .nav-name {
    color: #1a73e8;
}

.font-nav-item.disabled .nav-name {
    color: #999;
}

.related-fonts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.related-fonts-list li {
    position: relative;
    padding-left: 16px;
}

.related-fonts-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #1a73e8;
    font-weight: bold;
}

.related-fonts-list li a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.related-fonts-list li a:hover {
    color: #1a73e8;
}

/* 保留旧样式以防其他地方用到 */
.related-fonts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.related-font-item {
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
}

.related-font-item:hover {
    transform: translateY(-3px);
}

.related-font-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 3px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 8px;
}

.related-font-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-font-thumb .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-color), #4db6ac);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.related-font-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-font-item:hover .related-font-name {
    color: var(--theme-color);
}

/* ------------------
 * 上一篇/下一篇导航
 * --------------- */
.post-navigation {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.post-nav-item {
    flex: 1;
    background: #fff;
    border-radius: 3px;
    padding: 15px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.post-nav-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-nav-item a:hover {
    color: var(--theme-color);
}

.post-nav-item a::before {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.post-nav-item.prev a::before {
    content: '← 上一篇';
}

.post-nav-item.next a::before {
    content: '下一篇 →';
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-item.next a::before {
    content: '下一篇 →';
}

.post-nav-item .nav-disabled {
    display: block;
    color: #ccc;
    font-size: 14px;
}

.post-nav-item.prev .nav-disabled::before {
    content: '← ';
}

.post-nav-item.next .nav-disabled::before {
    content: '';
}

.post-nav-item.next .nav-disabled::after {
    content: ' →';
}

/* 相关字体响应式 */
@media (max-width: 768px) {
    .related-fonts {
        padding: 15px;
    }
    
    .related-fonts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .related-font-name {
        font-size: 12px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-nav-item.next {
        text-align: left;
    }
}

/* ------------------
 * 侧边栏小部件
 * --------------- */
.sidebar-widget {
    background: #fff;
    border-radius: 3px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 1px 5px 0 rgba(0,0,0,0.05);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e8eb;
}

.widget-title .title-icon {
    font-size: 16px;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.widget-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-list li:first-child {
    padding-top: 0;
}

.widget-list li a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.widget-list li a:hover {
    color: var(--theme-color);
}

/* 侧边栏响应式 - 移动端隐藏 */
@media (max-width: 768px) {
    .sidebar-widget {
        display: none;
    }
}

/* -----------------
 * 分页样式
 * --------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* margin: 40px 0 0; */
    padding: 20px 0 0 0;
}

.pagination .page-link,
.pagination .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
    background: #f5faf9;
}

.pagination .page-num.current {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.pagination .page-info {
    color: #999;
    font-size: 14px;
    padding: 0 15px;
}

.pagination .page-ellipsis {
    color: #999;
    padding: 0 5px;
}

/* 上一页/下一页按钮 */
.pagination .page-prev,
.pagination .page-next {
    padding: 0 15px;
}

.pagination .page-prev:hover,
.pagination .page-next:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

/* 禁用状态 */
.pagination .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 分页响应式 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination .page-link,
    .pagination .page-num {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination .page-info {
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 10px;
    }
}