/* 目录页与分类入口：五套模板共用，中性色基于 currentColor，亮/暗主题都适配 */

.adx {
    margin: 14px 0 8px;
    color: inherit;
}

.adx-cats {
    margin: 0 0 14px;
}

.adx-cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adx-cats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    background: color-mix(in srgb, currentColor 4%, transparent);
}

.adx-cats a:hover {
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.adx-cats span {
    font-size: 11.5px;
    font-weight: 500;
    opacity: .65;
}

.adx-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 10px;
    overflow: hidden;
}

.adx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.adx-item:last-child {
    border-bottom: 0;
}

.adx-item:hover {
    background: color-mix(in srgb, currentColor 4%, transparent);
}

.adx-num {
    flex: 0 0 auto;
    min-width: 20px;
    font-size: 12px;
    opacity: .55;
    font-variant-numeric: tabular-nums;
}

.adx-logo {
    flex: 0 0 auto;
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    background: color-mix(in srgb, currentColor 5%, transparent);
}

.adx-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adx-ph {
    display: block;
    width: 100%;
    height: 100%;
}

.adx-body {
    flex: 1 1 auto;
    min-width: 0;
}

.adx-name {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adx-name:hover {
    text-decoration: underline;
}

.adx-meta {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: .68;
}

.adx-btn {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.adx-btn:hover {
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.adx-empty {
    padding: 14px 12px;
    opacity: .7;
}

@media (min-width: 720px) {
    .adx-item {
        padding: 10px 14px;
    }

    .adx-name {
        font-size: 15px;
    }
}
