/* ==================== Content-Type 列表样式 ==================== */

/* 容器 */
.ct-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 分组 */
.ct-group {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.ct-group-title {
    padding: 12px 16px;
    background: var(--color-bg-secondary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

/* CT 列表 */
.ct-items {
    display: flex;
    flex-direction: column;
}

/* CT 条目 */
.ct-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.ct-item:last-child {
    border-bottom: none;
}

.ct-item:hover {
    background: var(--color-bg-secondary);
}

.ct-item.copied {
    background: #e6f4ea;
}

.ct-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.ct-ext {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ct-value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: right;
}

/* Toast 提示 */
.ct-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-text);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.ct-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式 */
@media (max-width: 600px) {
    .ct-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ct-ext {
        width: fit-content;
    }

    .ct-value {
        text-align: left;
    }
}
