* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
@font-face {
font-family: dabiao;
src: url("../font/dabiao.ttf");
}
body {
  font-family: Arial, sans-serif;
}
.container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}
.container > h1{
  margin: 50px 0;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 20px 0;
}
.logo h3 {
  margin: 0;
  font-size: 24px;
}
.submit {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 25px;
  font-size: 12px;
  margin-left: 10px; /* 添加间距 */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.submit:hover {
  background-color: #a3a3a3;
}
.nav-right{
  display: flex;
  align-items: center;
}
.menu {
  width: 60%;
  margin: 0 auto;
  padding: 5px;
  border-radius: 25px;
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  white-space: nowrap;
}
@media screen and (max-width: 1200px) { /* 添加媒体查询 */
  .menu {
    width: 70%;
  }
}
@media screen and (max-width: 768px) { /* 添加媒体查询 */
  .menu {
    width: 90%;
  }
}
.menu button {
  background-color: #ffffff00;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.menu button:hover {
  background-color: #f5f5f5;
}
.menu button.active {
  background-color: #000;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.card {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 250px;  /* 减小卡片最大宽度 */
  margin: 12px;
  padding: 20px;  /* 减小内边距 */
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  background: #ffffff;
  cursor: default;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
/* 工具卡片特定样式 */
.card[data-type="tool"] {
/*     border-left: 4px solid #007bff; */
}
/* 博客卡片特定样式 */
.card[data-type="blog"] {
  border-left: 4px solid #333333;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
}
/* 添加微信文章卡片特定样式 */
.card[data-type="wechat"] {
  border-left: 4px solid #07C160;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
/* 工具卡片头部样式 */
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.tool-header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;  /* 防止图片被压缩 */
}
.tool-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.tool-info h3 {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.tool-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* 限制为2行 */
  -webkit-box-orient: vertical;
}
/* 博客卡片内容样式 */
.blog-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  height: 100%;
}
.blog-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* 限制为2行 */
  -webkit-box-orient: vertical;
}
.card h3 {
  font-size: 20px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}
.card p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
/* 分类标签样式优化 */
.category-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  position: absolute;
  right: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 按钮容器样式 */
.link-wrapper {
  margin-top: auto;
  padding-top: 15px;
  text-align: left;  /* 添加左对齐 */
}
/* 修改按钮基础样式 */
.card-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  text-decoration: none;  /* 确保没有下划线 */
}
/* 工具链接按钮样式 */
.tool-link {
  background-color: #f8f9fa;
  color: #007bff;
  border-color: #007bff;
}
.tool-link:hover {
  background-color: #007bff;
  color: #ffffff;
}
/* 博客链接按钮样式 */
.blog-link {
  background-color: #f8f9fa;
  color: #333333;
  border-color: #333333;
  padding: 4px 12px;
}
.blog-link:hover {
  background-color: #333333;
  color: #ffffff;
}
/* 微信文章链接按钮样式 */
.wechat-link {
  background-color: #f8f9fa;
  color: #07C160;
  border-color: #07C160;
  padding: 4px 12px;
}
.wechat-link:hover {
  background-color: #07C160;
  color: #ffffff;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section h3 {
  color: var(--dark-color);
  /* margin-bottom: 1.5rem; */
  font-size: 1.2rem;
  position: relative;
  /* padding-bottom: 0.5rem; */
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3sease;
}
.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px 8px 40px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

/* 响应式调整 */
@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px 8px 10px;
    font-size: 12px;
  }
  .footer-bottom-left,
  .footer-bottom-right {
    gap: 8px;
    margin-bottom: 4px;
  }
}

.footer {
  margin-top: 30px;
  font-size: 12px;
  color: #777;
}
.footer a {
  color: #777;
  text-decoration: none;
}
.footer-bar{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
}
.footer-logo{
 width:15rem;
}
.footer-bar-description {
  color: rgba(60, 60, 67, 0.8);
  font-weight: 700;
  font-size: 1.52rem;
  font-family: 'dabiao','Fallback Font', sans-serif;
}
.footer-bar-link {
  padding: 10px 20px;
  background: #f7f7f9;
  border-radius: 20px;
  margin-top: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e3e8f7;
  transition: all .3s; 
  color: black;
}
.footer-bar-link:hover {
  background: #000000 !important;
  color: #fff;
  transform: translate(0px, 0px) scale(1.1) rotate(0deg);
  border-color: #000000 !important;
}
/* 博客卡片底部容器 */
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;  /* 自动占据剩余空间，推到底部 */
}
/* 调整博客卡片标签样式 */
.card[data-type="blog"] .category-tag {
  position: static;
  margin: 0;
  box-shadow: none;
  padding: 6px 12px;
}
/* 微信弹窗相关样式 */
.wechat-container {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}
/* 遮罩层 */
.wechat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* 弹窗样式 */
.wechat-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 显示状态类 */
.wechat-overlay.show {
  display: block;
  opacity: 1;
}
.wechat-popup.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* 优化卡片样式 */
.wechat-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 300px;
}
.wechat-card .qrcode {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.wechat-card .tips {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}
.wechatOA-card {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #eee;
}
.wechatOA-head {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-right: 16px;
  background-size: cover;
  background-position: center;
  background-image: url(../img/icon.webp);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.wechatOA-info {
  text-align: left;
}
.wechatOA-name {
  font-weight: 600;
  font-size: 17px;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.wechatOA-description {
  font-size: 13px;
  color: #666;
}
/* 订阅表单样式 */
.subscribe-form {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.subscribe-text {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.subscribe-methods {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.subscribe-btn:hover {
  transform: translateY(-2px) !important;
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.subscribe-btn i {
  color: white !important;
}

/* 微信二维码悬浮效果 */
.subscribe-btn.wechat {
  background: #07c160;
}

.subscribe-btn.wechat:hover {
  background: #06ad56;
}

.qr-code {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-code img {
  width: 120px;
  height: 120px;
  display: block;
}

.subscribe-btn.wechat:hover .qr-code {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* RSS按钮样式 */
.subscribe-btn.rss {
  background: #f26522;
}

.subscribe-btn.rss:hover {
  background: #e54e0d;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .subscribe-methods {
      flex-direction: column;
  }
  
  .subscribe-btn {
      justify-content: center;
  }
  
  .qr-code {
      left: 0;
      transform: translateX(0) scale(0.8);
  }
  
  .subscribe-btn.wechat:hover .qr-code {
      transform: translateX(0) scale(1);
  }
}