/* ============ 内容区定位上下文（供面包屑绝对定位） ============ */
.content { position: relative; }

/* ============ 一级分类 tab 条（面包屑式） ============ */
.list-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.list-crumbs__item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.95rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--c-text-sub);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.list-crumbs__item:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-color: var(--c-primary-soft-2);
}
.list-crumbs__item.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

/* ============ 区块标题 + 二级 tab（与首页一致） ============ */
.section { margin-bottom: 2.25rem; }
.section__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
    /* 吸顶：紧贴顶部 topbar（高约48px）下方，避免被遮挡 */
    position: sticky;
    top: 48px;
    z-index: 14;
    padding: 0.5rem 0;
    background: var(--c-bg-page);
}
.section__head-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; min-width: 0; flex: 1; overflow: hidden; }
.section__head-left::before {
    content: ""; width: 0.25rem; height: 1.1rem;
    background: var(--c-primary); border-radius: 2px;
}
.section__title { font-size: 1.15rem; font-weight: 700; color: var(--c-text); }
/* 搜索结果计数（标题旁次要文本） */
.section__title-aux { font-size: 0.8rem; font-weight: 400; color: var(--c-text-sub); }
.section__tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.15rem 0;
    max-width: 100%;
}
.section__tabs::-webkit-scrollbar { height: 0; }
.section__tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.78rem;
    color: var(--c-text-sub);
    background: var(--c-bg-page);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.section__tab:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
}
.section__tab.active {
    background: var(--c-primary);
    color: #fff;
}

/* ============ 卡片网格 ============ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}
.card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
    opacity: 0;
    transform: translateY(16px);
}
.card.in-view {
    animation: cardFadeUp 0.5s var(--ease) forwards;
}
@keyframes cardFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--c-shadow);
    border-color: var(--c-primary-soft-2);
}
.card__icon {
    width: 2.75rem; height: 2.75rem;
    border-radius: 0.625rem;
    background: var(--c-primary-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card:hover .card__icon {
    transform: scale(1.12) rotate(-4deg);
    background: var(--c-primary);
}
.card__body { min-width: 0; }
.card__name {
    font-size: 0.95rem; font-weight: 600; color: var(--c-text);
    margin-bottom: 0.15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__desc {
    font-size: 0.8rem; color: var(--c-text-sub);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============ 空态 ============ */
.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--c-text-sub);
    font-size: 0.9rem;
}

/* ============ 响应式 ============ */
@media (max-width: 767px) {
    .grid { grid-template-columns: 1fr; }
}

/* ============ Hero 区（与首页 home.css 保持一致，List 页复用 part_home_hero） ============ */
.hero {
    margin-bottom: 2.5rem;
    padding: 3.25rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: heroFadeUp 0.6s var(--ease) both;
}
.hero__inner { width: 100%; max-width: 44rem; }
.hero__title {
    font-size: clamp(2rem, 1.2rem + 2.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.4rem;
    background-image: linear-gradient(180deg, #552FF4 0%, #964CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}
.hero__subtitle {
    font-size: clamp(1.6rem, 1rem + 1.8vw, 2.1rem);
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.hero__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #8A88A5;
    margin: 0 0 1.75rem;
    max-width: 30rem;
}
.search {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 29px;
    width: 980px;
    max-width: 100%;
    height: 58px;
    padding: 0 6px 0 30px;
    box-shadow: 0 8px 24px rgba(48, 42, 65, 0.12);
    transition: box-shadow 0.25s var(--ease);
}
.search:focus-within { box-shadow: 0 8px 28px rgba(85, 47, 244, 0.22); }
.search img { width: 18px; height: 18px; opacity: 0.6; flex-shrink: 0; margin-right: 10px; }
.search input {
    flex: 1; border: none; outline: none;
    font-size: 14px; background: transparent; color: #333;
    min-width: 0; height: 100%;
}
.search input::placeholder { color: #B6B6B6; }
.search button {
    width: 80px; height: 46px;
    background: linear-gradient(-25deg, #DA83F2 0%, #7D72FB 100%);
    color: #fff; border: none;
    border-radius: 23px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
}
.search button:hover { opacity: 0.92; }
.search button:active { transform: scale(0.96); }
@media (max-width: 767px) {
    .search { width: 100%; padding: 0 4px 0 18px; }
    .search img { width: 16px; height: 16px; }
}
