
  /* ===== 分类导航 (横向滚动 + 全部弹窗) ===== */
  .category-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 32px;
    padding: 18px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    position: relative;
  }

  .category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .category-scroll::-webkit-scrollbar {
    display: none;
  }

  .category-scroll .category-item {
    flex-shrink: 0;
  }

  .category-scroll .category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #1e293b;
    background: white;
    padding: 6px 18px 6px 14px;
    border-radius: 40px;
    border: 1px solid #e9edf2;
    transition: 0.15s;
    /*cursor: default;*/
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
  }
  .category-scroll .category-item i {
    color: var(--hc);
    font-size: 16px;
    width: 20px;
    text-align: center;
  }
  .category-scroll .category-item:hover {
    border-color: var(--hc);
    background: #f8faff;
    /*transform: translateY(-1px);*/
  }

  .category-all-btn {
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 40px;
    padding: 6px 18px;
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: 0.15s;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
  }
  .category-all-btn:hover {
    border-color: var(--hc);
    background: #f8faff;
  }
  .category-all-btn i {
    color: var(--hc);
  }

  .category-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e9edf2;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    z-index: 100;
    min-width: 480px;
    max-width: 600px;
  }
  .category-dropdown.open {
    display: block;
  }

  .dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
  }
  .dropdown-grid a:hover{color: var(--hc);}
  .dropdown-grid .category-item {
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
  }

  /* ===== 页面标题 & 面包屑 ===== */
  .page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0b1e33;
    letter-spacing: -0.3px;
  }
  .page-header h1 i {
    color: var(--hc);
    margin-right: 10px;
  }
  .breadcrumb {
    font-size: 14px;
    color: #94a3b8;
  }
  .breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
  }
  .breadcrumb a:hover {
    color: var(--hc);
  }
  .breadcrumb .sep {
    margin: 0 6px;
  }
  .breadcrumb .current {
    color: #1e293b;
    font-weight: 500;
  }

  /* ===== 列表页主体 ===== */
  .list-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 8px;
  }

  /* 筛选条 */
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: white;
    padding: 14px 22px;
    border-radius: 20px;
    border: 1px solid #f1f4f9;
    margin-bottom: 28px;
    align-items: center;
  }
  .filter-bar .label {
    font-weight: 600;
    font-size: 14px;
    color: #475569;
  }
  .filter-bar .filter-tag {
    padding: 4px 16px;
    border-radius: 40px;
    border: 1px solid #e9edf2;
    font-size: 14px;
    color: #1e293b;
    background: white;
    cursor: default;
    transition: 0.15s;
  }
  .filter-bar .filter-tag.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
  }
  .filter-bar .filter-tag:hover:not(.active) {
    border-color: #2563eb;
    background: #f8faff;
  }
  .filter-bar .filter-tag i {
    margin-right: 4px;
  }

  /* 文章列表 (列表页样式) */
  .article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .article-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 18px 22px;
    border-radius: 24px;
    border: 1px solid #f1f4f9;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    align-items: flex-start;
  }
  .article-card:hover {
    border-color: #dce3ed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  }
  .article-card .thumb {
    width: 200px;
    height: 130px;
    background: #d9e1ec;
    border-radius: 18px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .article-card .info {
    flex: 1;
  }
  .article-card .info .cat-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--hc);
    background: #eef4ff;
    padding: 2px 14px;
    border-radius: 40px;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 5px;
  }
  .article-card .info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0b1e33;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .article-card .info h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
  }
  .article-card .info h3 a:hover {
    color: var(--hc);
  }
  .article-card .info p {
    color: #475569;
    font-size: 15px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-card .info .meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    gap: 18px;
  }
  .article-card .info .meta i {
    margin-right: 4px;
  }

  /* 分页 */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
  }
  .pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 40px;
    border: 1px solid #e9edf2;
    background: white;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.15s;
  }
  .pagination a:hover {
    border-color: var(--hc);
    background: #f8faff;
  }
  .pagination a.active {
    background: var(--hc);
    border-color: var(--hc);
    color: white;
  }
  .pagination a.disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  /* ===== 右侧面板 (与首页一致) ===== */
  .side-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .panel-card {
    background: white;
    border-radius: 24px;
    padding: 22px 22px 20px;
    border: 1px solid #f1f4f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  }
  .panel-card h4 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b1e33;
  }
  .panel-card h4 i {
    color: var(--hc);
    font-size: 18px;
  }
  .rank-list {
    list-style: none;
  }
  .rank-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f8;
    align-items: flex-start;
  }
  .rank-list li:last-child {
    border-bottom: none;
  }
  .rank-num {
    font-weight: 700;
    color: #94a3b8;
    min-width: 24px;
    font-size: 15px;
  }
  .rank-list li:first-child .rank-num,
  .rank-list li:nth-child(2) .rank-num,
  .rank-list li:nth-child(3) .rank-num {
    color: var(--hc);
  }
  .rank-list a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.15s;
  }
  .rank-list a:hover {
    color: var(--hc);
  }
  .rec-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f8;
    align-items: center;
  }
  .rec-item:last-child {
    border-bottom: none;
  }
  .rec-item .mini-thumb {
    width: 60px;
    height: 60px;
    background: #d9e1ec;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .rec-item .mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .rec-item .rec-content {
    flex: 1;
  }
  .rec-item .rec-content h5 {
    font-weight: 400;
    font-size: 15px;
    color: #0b1e33;
    margin-bottom: 4px;
  }
  .rec-item .rec-content a:hover {
    color: var(--hc);
  }
  .rec-item .rec-content span {
    font-size: 12px;
    color: #94a3b8;
  }


  /* ===== 详情页专用样式 ===== */
  .detail-wrapper {
    background: white;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid #f1f4f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01);
    margin-bottom: 30px;
  }

  .detail-header {
    margin-bottom: 28px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 24px;
  }
  .detail-header .cat-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--hc);
    background: #eef4ff;
    padding: 4px 18px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 14px;
  }
  .detail-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0b1e33;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .detail-header .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #94a3b8;
    align-items: center;
    margin-top: 20px;
  }
  .detail-header .meta i {
    margin-right: 4px;
  }
  .detail-header .meta .author {
    font-weight: 500;
    color: #475569;
  }

  .detail-body {
    font-size: 17px;
    color: #1e293b;
    line-height: 1.8;
  }
  .detail-body p {
    margin-bottom: 20px;
  }
  .detail-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #0b1e33;
  }
  .detail-body .featured-img {
    margin: 24px 0;
    border-radius: 20px;
    overflow: hidden;
  }
  .detail-body .featured-img img {
    width: 100%;
    height: auto;
    display: block;
  }
  .detail-body .caption {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    margin-top: 8px;
  }
  .detail-body blockquote {
    background: #f8faff;
    border-left: 4px solid #2563eb;
    padding: 16px 24px;
    border-radius: 12px;
    margin: 24px 0;
    font-style: italic;
    color: #334155;
  }
  .detail-body ul {
    padding-left: 24px;
    margin-bottom: 20px;
  }
  .detail-body ul li {
    margin-bottom: 8px;
  }

  .detail-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eef2f6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .detail-footer .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .detail-footer .tags span {
    background: #f1f4f9;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 13px;
    color: #475569;
  }
  .detail-footer .share {
    display: flex;
    gap: 14px;
    font-size: 20px;
    color: #94a3b8;
  }
  .detail-footer .share i {
    cursor: default;
    transition: color 0.2s;
  }
  .detail-footer .share i:hover {
    color: #2563eb;
  }

  /* ===== 相关推荐 ===== */
  .related-section {
    margin-top: 40px;
  }
  .related-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0b1e33;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 12px;
  }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .related-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f4f9;
    overflow: hidden;
    transition: 0.2s;
  }
  .related-card:hover {
    border-color: #dce3ed;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }
  .related-card .thumb {
    width: 100%;
    height: 120px;
    background: #d9e1ec;
    overflow: hidden;
  }
  .related-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .related-card .info {
    padding: 14px 16px 16px;
  }
  .related-card .info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #0b1e33;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .related-card .info .meta {
    font-size: 12px;
    color: #94a3b8;
  }

  /* ===== 响应式 ===== */
  @media (max-width: 900px) {
    .nav-links {
      gap: 16px;
      flex-wrap: wrap;
    }
    .search-box input {
      width: 100px;
    }
    .category-dropdown {
      min-width: unset;
      width: 100%;
      right: auto;
      left: 0;
    }
    .dropdown-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .detail-wrapper {
      padding: 28px 20px;
    }
    .detail-header h1 {
      font-size: 26px;
    }
    .related-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .category-scroll .category-item{padding: 5px;font-size: 13px;}
    .category-all-btn{padding: 6px 10px;}
    .category-scroll .category-item i{color: #111;width: 14px;}
    .page-header h1{font-size: 20px;}
    .list-layout{display: block;}
    .article-card .thumb{width: 100px;height: 60px;border-radius: 9px;}
    .article-card .info{order: -1;}
    .article-card .info .cat-tag{display: none;}
    .article-card .info p{display: none;}
    .article-card .info h3{font-size: 16px;font-weight: normal;}
    .pagination{margin-top: 10px;margin-bottom: 28px;}
    .pagination a{min-width: 35px;height: 35px;padding: 0 3px;}

    .detail-body h2{font-size: 16px;}
  }

  @media (max-width: 600px) {
    .navbar {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
    }
    .nav-actions {
      justify-content: space-between;
    }
    .search-box {
      width: 100%;
    }
    .search-box input {
      width: 100%;
    }
    .category-wrapper {
      flex-wrap: nowrap;
    }
    .dropdown-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .page-header {
      flex-direction: column;
      gap: 8px;
    }
    .detail-wrapper {
      padding: 20px 16px;
    }
    .detail-header h1 {
      font-size: 22px;
    }
    .detail-footer {
      flex-direction: column;
      gap: 16px;
      align-items: flex-start;
    }
    .related-grid {
      grid-template-columns: 1fr;
    }
  }
