@charset "utf-8";
body{
            background: #fff;
        }
.article-categories {
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px 12px;
    border-radius: 6px;
}

.category-item {
    margin-bottom: 12px;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 16px;
}

.category-title:hover {
    background: #f0f0f0;
}

.category-title.active {
    background: #e8f0ff;
}

.category-title p {
    margin: 0;
    font-weight: bold;
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.category-title.active .arrow {
    transform: rotate(-135deg);
}

.category-list {
    display: none;
    margin-top: 8px;
    padding-left: 20px;
    line-height: 1.8;
}

.category-list a {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s;
}

.category-list a:hover {
    text-decoration: none;
    background: #f0f0f0;
}


.category-list a.selected {
    color: #FF684F; /* 高亮颜色 */
    font-weight: bold;
    background: transparent; /* 保持背景透明 */
}

    .back-top {
      position: fixed;
      bottom: 24px;
      right: 16px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(99,102,241,.85);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(99,102,241,.4);
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      transition: var(--transition);
      z-index: 50;
    }
    .back-top.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .back-top svg { width: 20px; height: 20px; }


    .skeleton {
      background: linear-gradient(90deg, #e5e7eb 25%, #f0f2f5 50%, #e5e7eb 75%);
      background-size: 200% 100%;
      animation: shimmer 1.2s ease infinite;
      border-radius: 6px;
    }
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }


    .mt-auto { margin-top: auto; }
    .text-ellipsis {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    @media (min-width: 480px) {
      .app { max-width: 480px; }
    }
    @media (max-width: 360px) {
      :root { --max-w: 360px; }
      .article-thumb { width: 76px; height: 76px; }
    }