.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.post-card {
  display: flex !important;
  flex-direction: row !important;
  background: var(--md-primary-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: transform .2s;
  height: 120px;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-image {
  width: 40px !important;
  min-width: 40px !important;
  height: 100% !important;
  overflow: hidden;
}

.post-image img {
  width: 30%;
  height: 30%;
  object-fit: cover;
}

.post-content {
  flex: 1;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.post-content h2 {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.0;
}

.post-content h2 a {
  color: var(--md-typeset-color);
  text-decoration: none;
}

.post-meta {
  font-size: 0.65rem;
  margin: 0;
  line-height: 1.2;
}

.post-excerpt {
  font-size: 0.6rem;
  line-height: 1.0;
  margin: 0;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .post-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .post-card {
    margin-bottom: 1rem;
  }
}

/* 文章列表部分 */
.blog-section {
  margin-top: 1rem;
}

/* 两列网格布局 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 两列布局 */
  gap: 2rem;
  padding: 1rem 0;
}

.post-category {
  padding: 0.1rem 0.3rem;
  margin: 0 0.1rem;
  font-size: 0.6rem;
}

/* 移动端适配 */
@media screen and (max-width: 1200px) {
  .post-grid {
    grid-template-columns: 1fr;  /* 小屏幕时改为单列 */
  }
}

@media screen and (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    padding: 1rem;
  }

  .profile-image {
    flex: 0 0 auto;
  }

  .post-card {
    height: auto;
  }

  .post-image {
    flex: 0 0 200px;
  }
}

@media screen and (max-width: 640px) {
  .post-card {
    flex-direction: column !important;
  }

  .post-image {
    width: 100% !important;
    height: 60px !important;
  }

  .post-content {
    width: 100% !important;
  }
}

/* 个人简介部分 */
.profile-section {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--md-primary-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.profile-image {
  flex: 0 0 200px;
}

.profile-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f5f5f5;
  padding: 1rem;
}

.profile-content {
  flex: 1;
}

.profile-content h1 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

/* 文章列表部分 */
.blog-section {
  margin-top: 3rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;  /* 强制两列布局 */
  gap: 2rem;
  padding: 1rem 0;
}

.post-card {
  display: flex !important;  /* 强制横向布局 */
  flex-direction: row !important;
  background: var(--md-primary-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
  height: 220px;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.post-image {
  flex: 0 0 180px !important;  /* 强制固定宽度 */
  height: 100% !important;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  flex: 1;
  padding: 1.0rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-content h2 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  line-height: 1.0;
}

.post-content h2 a {
  color: var(--md-typeset-color);
  text-decoration: none;
}

.post-meta {
  font-size: 0.6rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.6rem;
}

.post-category {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
  background: var(--md-primary-fg-color--light);
  color: var(--md-primary-bg-color);
  border-radius: 4px;
  font-size: 0.6rem;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 移动端适配 */
@media screen and (max-width: 1200px) {
  .post-grid {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    padding: 1rem;
  }

  .profile-image {
    flex: 0 0 auto;
  }

  .post-card {
    height: auto;
  }
}

@media screen and (max-width: 640px) {
  .post-card {
    flex-direction: column !important;
  }

  .post-image {
    width: 100%;
    height: 200px !important;
  }
}

/* 更多按钮样式 */
.load-more {
  text-align: center;
  margin: 3rem 0;
  grid-column: 1 / -1;  /* 让按钮跨越所有列 */
}

.load-more .md-button {
  display: inline-block;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.load-more .md-button:hover {
  background-color: var(--md-primary-fg-color--dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--md-primary-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.empty-state h2 {
    color: var(--md-primary-fg-color);
    margin: 1rem 0;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--md-default-fg-color--light);
    margin: 0.5rem 0;
}

.empty-state-hint {
    font-size: 0.9rem;
    margin-top: 1.5rem !important;
    opacity: 0.8;
}

/* 分类页面样式 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* 产品页面样式 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.product-card {
  background: var(--md-primary-bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: transform .2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-radius: 4px;
  text-decoration: none;
}

/* 工具软件页面样式 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1.5rem 0;
}

.tool-card {
  background: var(--md-primary-bg-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
  transition: all .3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,.1);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.tool-card h3 {
  margin: 0.5rem 0;
  font-size: 1.4rem;
  color: var(--md-primary-fg-color);
}

.tool-card small {
  display: block;
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tool-card p {
  margin: 1rem 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
}

.tool-link:hover {
  background: var(--md-primary-fg-color--dark);
  transform: scale(1.05);
}

/* 介绍部分样式 */
.intro-section {
  background-color: var(--md-primary-bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-left: 4px solid var(--md-primary-fg-color);
}

.intro-section p {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: var(--md-default-fg-color);
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* 博客文章列表样式 */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem;
  margin: 1.5rem 0;
  width: 100%;
}

.blog-post {
  display: flex;
  background-color: var(--md-primary-bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.blog-post-thumbnail {
  flex: 0 0 120px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-thumbnail img {
  transform: scale(1.05);
}

.blog-post-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.blog-post-title {
  margin: 0 0 0.5rem 0;
  color: var(--md-primary-fg-color);
  font-size: 1.1rem;
  line-height: 1.3;
}

.blog-post-excerpt {
  margin: 0 0 1rem 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.blog-post-link {
  display: inline-block;
  color: var(--md-primary-fg-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.blog-post-link:hover {
  color: var(--md-primary-fg-color--dark);
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
  .blog-posts {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .blog-post {
    flex-direction: column;
  }

  .blog-post-thumbnail {
    flex: 0 0 150px;
    width: 100%;
  }
}

/* 工具卡片样式 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tool-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: var(--md-primary-bg-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.tool-icon-container {
  margin-bottom: 1rem;
}

.tool-icon {
  font-size: 3rem;
  display: inline-block;
}

.tool-card h3 {
  margin: 0 0 0.2rem 0;
  color: var(--md-primary-fg-color);
  font-size: 1.3rem;
}

.tool-subtitle {
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tool-card p {
  margin: 0 0 1.5rem 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-link {
  display: inline-block;
  color: var(--md-primary-fg-color);
  background-color: #e0f2f1;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tool-link:hover {
  background-color: #b2dfdb;
  transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
  .article-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
}