body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background-color: #f9fafb;
      line-height: 1.6;
    }

    /* 分类筛选样式 */
    .category-filters {
      background: blcak;
      border-radius: 0.75rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

      padding: 1.5rem;
      margin-bottom: 2rem;
    }

    .category-filters h2 {
      font-size: 1.25rem;
      font-weight: 600;
      color: #111827;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* 搜索框样式 */
    .search-container {
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: flex-end; /* 居右对齐 */
    }

    .search-box {
      position: relative;
      max-width: 400px;
      width: 100%;
    }

    .search-input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.5rem;
      border: 1px solid #d1d5db;
      border-radius: 0.5rem;
      font-size: 0.875rem;
      background: #f9fafb;
      transition: all 0.3s ease;
      color: #000; /* ← 输入文字变黑 */
    }

    .search-input::placeholder {
        color: #6b7280; /* 灰色 placeholder，可选 */
    }


    .search-input:focus {
      outline: none;
      border-color: #3b82f6;
      background: white;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .search-icon {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: #6b7280;
      width: 1rem;
      height: 1rem;
    }

    .filter-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .filter-btn {
      padding: 0.5rem 1rem;
      border: 1px solid #e5e7eb;
      border-radius: 2rem;
      background: #f9fafb;
      color: #6b7280;
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      transition: all 0.3s ease;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    .filter-btn:hover {
      border-color: #3b82f6;
      color: #3b82f6;
      background: #eff6ff;
    }

    .filter-btn.active {
      background: #3b82f6;
      color: white;
      border-color: #3b82f6;
    }

    .filter-btn .count {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.125rem 0.375rem;
      border-radius: 0.75rem;
      font-size: 0.75rem;
    }

    .filter-btn.active .count {
      background: rgba(255, 255, 255, 0.25);
    }

    /* 模板卡片网格样式 */
    .template-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .template-card {
      background: white;
      border-radius: 0.75rem;
      overflow: hidden;
      border: 1px solid #e5e7eb;
      transition: all 0.3s ease;
      position: relative;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .template-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      border-color: #2563eb;
    }

    .template-card-image {
      position: relative;
      overflow: hidden;
      aspect-ratio: 16/10;
      background: #f3f4f6;
    }

    .template-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .template-card:hover .template-card-image img {
      transform: scale(1.1);
    }

    .template-card-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.75);
      opacity: 0;
      transition: opacity 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      flex-direction: column;
    }

    .template-card:hover .template-card-overlay {
      opacity: 1;
    }

    .card-btn {
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.875rem;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      min-width: 120px;
      justify-content: center;
    }

    .card-btn-primary {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: white;
      box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
    }

    .card-btn-primary:hover {
      background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    }

    .card-btn-secondary {
      background: rgba(255, 255, 255, 0.95);
      color: #374151;
      border: 1px solid rgba(229, 231, 235, 0.8);
      backdrop-filter: blur(10px);
    }

    .card-btn-secondary:hover {
      background: white;
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .template-card-content {
      padding: 1.5rem;
    }

   .template-card-title {
      font-weight: 600;
      color: #111827;
      font-size: 1.125rem;
      line-height: 1.4;
      margin-top: 0.75rem; /* 增加与上面内容的间距 */
      margin-bottom: 0.75rem; /* 保留原来的底部间距 */
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-align: center; /* 文字居中 */
    }

    .template-card-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #6b7280;
      font-size: 0.875rem;
      margin-bottom: 0.75rem;
    }

    .template-card-description {
      color: #6b7280;
      font-size: 0.875rem;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .template-tag {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: rgba(59, 130, 246, 0.9);
      color: white;
      padding: 0.375rem 0.75rem;
      border-radius: 1rem;
      font-size: 0.75rem;
      font-weight: 600;
      backdrop-filter: blur(10px);
      z-index: 10;
    }

    /* 分页样式 */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-top: 3rem;
    }

    .page-numbers {
      padding: 0.75rem 1rem;
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      text-decoration: none;
      color: #6b7280;
      font-weight: 500;
      transition: all 0.3s;
      background: white;
    }

    .page-numbers:hover {
      background: #f3f4f6;
      border-color: #d1d5db;
      transform: translateY(-1px);
    }

    .page-numbers.current {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: white;
      border-color: #2563eb;
      box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
    }

    .page-numbers.dots {
      border: none;
      pointer-events: none;
      background: transparent;
    }

    /* Tab样式保持原有设计 */
    .tab-container {
      background: white;
      border-radius: 0.75rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      border: 1px solid #e5e7eb;
      overflow: hidden;
      margin-bottom: 3rem;
    }

    .tab-header {
      background: #f9fafb;
      border-bottom: 1px solid #e5e7eb;
    }

    .tab-buttons {
      display: flex;
      position: relative;
    }

    .tab-button {
      padding: 1rem 1.5rem;
      background: #f9fafb;
      border: none;
      color: #6b7280;
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s;
      position: relative;
      text-decoration: none;
      display: inline-block;
    }

    .tab-button:hover {
      color: #2563eb;
    }

    .tab-button.active {
      color: #2563eb;
      background: white;
      border-bottom: 2px solid #2563eb;
    }

    .tab-content {
      padding: 1.5rem;
    }

    .tab-pane {
      display: none;
    }

    .tab-pane.active {
      display: block;
    }

    /* Grid Layout for Keywords and Topics */
    .grid-layout {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 0.75rem;
    }

    @media (min-width: 640px) {
      .grid-layout {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 768px) {
      .grid-layout {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .grid-layout {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    @media (min-width: 1280px) {
      .grid-layout {
        grid-template-columns: repeat(5, 1fr);
      }
    }

    .grid-item {
      display: block;
      padding: 0.75rem;
      color: #374151;
      text-decoration: none;
      border: 1px solid #e5e7eb;
      border-radius: 0.375rem;
      transition: all 0.3s;
      font-size: 0.875rem;
    }

    .grid-item:hover {
      color: #2563eb;
      background-color: #eff6ff;
      border-color: #93c5fd;
    }

    /* Articles Layout for Tab */
    .articles-layout {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .article-item {
      display: block;
      padding: 1rem;
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      text-decoration: none;
      color: inherit;
      transition: all 0.3s;
    }

    .article-item:hover {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      border-color: #93c5fd;
    }

    .article-flex {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
    }

    .article-number {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      background: #dbeafe;
      color: #2563eb;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.875rem;
      font-weight: 600;
      transition: all 0.3s;
    }

    .article-item:hover .article-number {
      background: #2563eb;
      color: white;
    }

    .article-content-tab {
      flex: 1;
      min-width: 0;
    }

    .article-title-tab {
      font-size: 1.125rem;
      font-weight: 500;
      color: #111827;
      margin-bottom: 0.25rem;
      transition: color 0.3s;
    }

    .article-item:hover .article-title-tab {
      color: #2563eb;
    }

    .article-date {
      font-size: 0.875rem;
      color: #6b7280;
      margin-bottom: 0.5rem;
    }

    .article-excerpt-tab {
      font-size: 0.875rem;
      color: #374151;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* 浮动侧边栏样式 */
    .floating-sidebar {
      position: fixed;
      right: 20px;
      top: 85%;
      transform: translateY(-50%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: #1e2a47;
      border-radius: 10px;
      padding: 15px 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .floating-sidebar-item {
      margin: 8px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #cbd5e0;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      font-size: 12px;
      width: 60px;
      text-align: center;
      position: relative;
    }

    .floating-sidebar-item:hover {
      color: #ffffff;
    }

    .floating-sidebar-item .icon-container {
      width: 26px;
      height: 26px;
      margin: 0 auto 5px auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .floating-sidebar-item svg {
      width: 26px;
      height: 26px;
      display: block;
      margin: 0;
    }

    .floating-sidebar-item#wechat-btn svg {
      width: 28px;
      height: 28px;
      transform: translateX(2px);
    }

    .floating-sidebar-item#help-center-btn svg {
      width: 24px;
      height: 24px;
    }

    #wechat-qrcode {
      position: fixed;
      right: 120px;
      background: #1e2a47;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      z-index: 1001;
      width: 220px;
      display: none;
      flex-direction: column;
      align-items: center;
    }

    .qrcode-container {
      background: white;
      padding: 10px;
      border-radius: 4px;
      margin-bottom: 10px;
      width: calc(100% - 20px);
      height: 170px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }

    .qrcode-container img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .qrcode-text {
      width: 100%;
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      margin-top: 5px;
    }

    .arrow-right {
      position: absolute;
      right: -10px;
      top: 30px;
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-left: 10px solid #1e2a47;
    }

    @media (max-width: 768px) {
      .floating-sidebar {
        display: none;
      }

      .template-grid {
        grid-template-columns: 1fr;
      }

      .filter-buttons {
        gap: 0.5rem;
      }

      .filter-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
      }

      .card-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 100px;
      }
    }

    /* 响应式优化 */
    @media (max-width: 640px) {
      .tab-buttons {
        flex-wrap: wrap;
      }

      .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
      }

      .template-card-overlay {
        flex-direction: row;
        gap: 0.5rem;
      }

      .template-card-content {
        padding: 1rem;
      }

      .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
      }
    }